void Yogore() { GetComponent <AudioSource>().PlayOneShot(correctSound); yogore.SetActive(false); itemListManager.UseItem(Item.Moppu); ProgressManager.Instance.yogore = 1; ProgressManager.Instance.SaveProgress(); }
//Aの部屋のドアAを押したとき public void PushDoorA() { //初めて開ける時 if (ProgressManager.Instance.openDoor == 0) { if (itemListManager.selectItem == Item.KeyA) { GetComponent <AudioSource>().PlayOneShot(keySe); Invoke("OpenDoor", 1); roomNo = 2; wallNo = 5; itemListManager.UseItem(Item.KeyA); itemListManager.SaveItem(); ProgressManager.Instance.openDoor = 1; ProgressManager.Instance.SaveProgress(); } else { GetComponent <AudioSource>().PlayOneShot(dontOpenDoorSE); } } else if (ProgressManager.Instance.openDoor == 1) { //2回め以降 walls.transform.localPosition = new Vector3(3000.0f, 2000.0f, 0.0f); GetComponent <AudioSource>().PlayOneShot(openDoorSE); roomNo = 2; wallNo = 5; } }
void GetMoppu() { itemListManager.SetItem(Item.Moppu); itemListManager.UseItem(Item.ClockHint); backButton.interactable = true; hintButton.interactable = true; ProgressManager.Instance.colorClock = 1; ProgressManager.Instance.SaveProgress(); }
void Check() { if (a == 7 && b == 12 && c == 18 && d == 12) { GetComponent <AudioSource>().PlayOneShot(correctSE); for (int i = 0; i < 4; i++) { upButton[i].interactable = false; downButton[i].interactable = false; } backButton.interactable = false; itemListManager.UseItem(Item.Album); gameManager.GameClear(); } }
void GetAlbum() { threeButtonObject.SetActive(false); itemListManager.SetItem(Item.Album); itemListManager.UseItem(Item.ThreeButton); }