Beispiel #1
0
        protected static bool DrawToggle(string label, string key, bool value)
        {
            value = PlayerPrefsEx.GetBool(key, value);
            bool newValue = EditorGUILayout.Toggle(label, value);

            if (newValue != value)
            {
                PlayerPrefsEx.SetBool(key, newValue);
            }
            return(newValue);
        }
 // 开场动画是否播放完毕
 public static void SetStartAnimFinished(bool finished = true)
 {
     PlayerPrefsEx.SetBool(START_ANIM_FINISHED, finished);
 }
 public static void SetBoolValue(string key, bool val)
 {
     PlayerPrefsEx.SetBool(key, val);
 }