SyncedInt64 - maceeikodev/WreckMP_Ref GitHub Wiki
public class SyncedInt64 : WreckAPI.SyncedProperty<long>
Creates a Int64 (long) variable, whose value is automatically synced across clients.
public long tolerance;
- When new value is set, if the difference is bigger than this value the event is sent.
public SyncedInt64(string uid, bool registerTimer = false);
Create an instance.
uid
- The unique name of the game event used to send updates.
registerTimer
- Set to true if you're going to use UpdateCooldown, otherwise keep on false to improve performance. Only use UpdateCooldown if you change the value often.