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