void SetBool() { isEasy = StageDate.GetBool(StageDate.easyKey, false); isNormal = StageDate.GetBool(StageDate.normalKey, false); isHard = StageDate.GetBool(StageDate.hardKey, false); isExtra = StageDate.GetBool(StageDate.extraKey, false); isExtraUnlock = StageDate.GetBool(StageDate.extraUnlockKey, false); isHardUnlock = StageDate.GetBool(StageDate.hardUnlockKey, false); }
void Awake() { isDelete = StageDate.GetBool(StageDate.deleteKey, false); if (!isDelete) { PlayerPrefs.DeleteAll(); StageDate.SetBool(StageDate.deleteKey, true); } }
// Update is called once per frame void Update() { status = StageDate.GetBool(StageDate.clearKey, false); FreezImage(); SelectMove(); mixer.SetFloat("SE", SE); mixer.SetFloat("BGM", BGM); if ((Input.GetKey(KeyCode.Space) || Input.GetButtonDown("Jump")) && !isPush) { isPush = true; audio.PlayOneShot(selectSE); if (selectNum == 0) { Quit(); } else if (selectNum == 1) { fade.StartFadeIn("Option", true); } else if (selectNum == 2) { if (status) { fade.StartFadeIn("RankingSelect", true); } else { isPush = false; } } else { fade.StartFadeIn("StageSelect", true); } } }