From 4d2ac2ce352f0bf0ac641d32564d011807deacd8 Mon Sep 17 00:00:00 2001 From: excitedneon Date: Thu, 11 May 2017 00:02:40 +0300 Subject: [PATCH] Make blinky box brighter and fix some BlinkyBox docs --- Assets/Scenes/TestMap.unity | 2 +- Assets/Scripts/Entities/SyncBases/BlinkyBox.cs | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Assets/Scenes/TestMap.unity b/Assets/Scenes/TestMap.unity index 1176640..3aec6a4 100644 --- a/Assets/Scenes/TestMap.unity +++ b/Assets/Scenes/TestMap.unity @@ -1605,7 +1605,7 @@ MonoBehaviour: ID: 0 Mesh: {fileID: 1229079791} BlinkLength: 1 - BlinkBrightness: 1.5 + BlinkBrightness: 2.5 BlinkColor: {r: 1, g: 0.6, b: 0, a: 1} --- !u!65 &1988211394 BoxCollider: diff --git a/Assets/Scripts/Entities/SyncBases/BlinkyBox.cs b/Assets/Scripts/Entities/SyncBases/BlinkyBox.cs index c0e983c..1de4a1b 100644 --- a/Assets/Scripts/Entities/SyncBases/BlinkyBox.cs +++ b/Assets/Scripts/Entities/SyncBases/BlinkyBox.cs @@ -6,8 +6,9 @@ using Cyber.Networking; using Cyber.Console; namespace Cyber.Entities.SyncBases { + /// - /// + /// Object that blinks when interacted with. /// public class BlinkyBox : Interactable { @@ -43,7 +44,7 @@ namespace Cyber.Entities.SyncBases { } /// - /// Deserializes this SyncBase for further use. + /// Update the blink time if the server has a newer blinktime /// /// public override void Deserialize(NetworkReader reader) { @@ -54,7 +55,7 @@ namespace Cyber.Entities.SyncBases { } /// - /// Serialize this SyncBase into a sync packet. + /// Write the blink time so others will sync if they have older blinks. /// /// public override void Serialize(NetworkWriter writer) { @@ -62,7 +63,7 @@ namespace Cyber.Entities.SyncBases { } /// - /// The blinky boxes handletype is + /// The blinky box doesn't need a hash and it should update every 5 ticks. /// /// Sync Handletype containing sync information. public override SyncHandletype GetSyncHandletype() {