SyncedInt32 - maceeikodev/WreckMP_Ref GitHub Wiki
public class SyncedInt32 : WreckAPI.SyncedProperty<int>
Creates a Int32 (int) variable, whose value is automatically synced across clients.
public int tolerance;
- When new value is set, if the difference is bigger than this value the event is sent.
public SyncedInt32(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.