Make blinky box brighter and fix some BlinkyBox docs
This commit is contained in:
parent
9bb323ad07
commit
4d2ac2ce35
@ -1605,7 +1605,7 @@ MonoBehaviour:
|
|||||||
ID: 0
|
ID: 0
|
||||||
Mesh: {fileID: 1229079791}
|
Mesh: {fileID: 1229079791}
|
||||||
BlinkLength: 1
|
BlinkLength: 1
|
||||||
BlinkBrightness: 1.5
|
BlinkBrightness: 2.5
|
||||||
BlinkColor: {r: 1, g: 0.6, b: 0, a: 1}
|
BlinkColor: {r: 1, g: 0.6, b: 0, a: 1}
|
||||||
--- !u!65 &1988211394
|
--- !u!65 &1988211394
|
||||||
BoxCollider:
|
BoxCollider:
|
||||||
|
@ -6,8 +6,9 @@ using Cyber.Networking;
|
|||||||
using Cyber.Console;
|
using Cyber.Console;
|
||||||
|
|
||||||
namespace Cyber.Entities.SyncBases {
|
namespace Cyber.Entities.SyncBases {
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
/// Object that blinks when interacted with.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class BlinkyBox : Interactable {
|
public class BlinkyBox : Interactable {
|
||||||
|
|
||||||
@ -43,7 +44,7 @@ namespace Cyber.Entities.SyncBases {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Deserializes this SyncBase for further use.
|
/// Update the blink time if the server has a newer blinktime
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="reader"></param>
|
/// <param name="reader"></param>
|
||||||
public override void Deserialize(NetworkReader reader) {
|
public override void Deserialize(NetworkReader reader) {
|
||||||
@ -54,7 +55,7 @@ namespace Cyber.Entities.SyncBases {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Serialize this SyncBase into a sync packet.
|
/// Write the blink time so others will sync if they have older blinks.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="writer"></param>
|
/// <param name="writer"></param>
|
||||||
public override void Serialize(NetworkWriter writer) {
|
public override void Serialize(NetworkWriter writer) {
|
||||||
@ -62,7 +63,7 @@ namespace Cyber.Entities.SyncBases {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The blinky boxes handletype is
|
/// The blinky box doesn't need a hash and it should update every 5 ticks.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>Sync Handletype containing sync information.</returns>
|
/// <returns>Sync Handletype containing sync information.</returns>
|
||||||
public override SyncHandletype GetSyncHandletype() {
|
public override SyncHandletype GetSyncHandletype() {
|
||||||
|
Loading…
Reference in New Issue
Block a user