예제 #1
0
        public bool GetValue(string key, out float value)
        {
            byte[] data;
            if (mStorage.GetData(key, out data))
            {
                value = SaveableFloat.Deserialize(0, data);
                return(true);
            }

            value = default(float);
            return(false);
        }
예제 #2
0
 public bool SetValue(string key, float value)
 {
     return(mStorage.AddData(key, SaveableFloat.Serialize(value)));
 }