protected void Sync(string key, ref bool value, bool saveOnlyNoSend = false, bool sendWithoutDiffCheck = false) { AValue res = Sync(key, new BoolValue(value), saveOnlyNoSend, sendWithoutDiffCheck); if (res != null) { value = AValue.to <bool>(res); } }
protected void Sync(string key, ref double value, bool saveOnlyNoSend = false, bool sendWithoutDiffCheck = false) { AValue res = Sync(key, new DoubleValue(value, "F" + decimalPlaces), saveOnlyNoSend, sendWithoutDiffCheck); if (res != null) { value = AValue.to <double>(res); } }
protected void Sync(string key, ref Quaternion value, string format, bool saveOnlyNoSend = false, bool sendWithoutDiffCheck = false) { AValue res = Sync(key, new QuaternionValue(value, format), saveOnlyNoSend, sendWithoutDiffCheck); if (res != null) { value = AValue.to <Quaternion>(res); } }