public override void SetValue(string value)
        {
            if (GetValue() == value)
            {
                return;
            }

            OnValueChanged.Invoke(value);
            MyPlayerPrefs.SaveString(key, value);
        }
Esempio n. 2
0
        public override void SetValue(long value)
        {
            if (GetValue() == value)
            {
                return;
            }

            this.value = value;
            OnValueChanged.Invoke(value);
            MyPlayerPrefs.SaveString(key, value.ToString());
        }
 public void SaveValue(long value)
 {
     this.value = value;
     MyPlayerPrefs.SaveString(key, value.ToString());
 }