예제 #1
0
 void Yogore()
 {
     GetComponent <AudioSource>().PlayOneShot(correctSound);
     yogore.SetActive(false);
     itemListManager.UseItem(Item.Moppu);
     ProgressManager.Instance.yogore = 1;
     ProgressManager.Instance.SaveProgress();
 }
예제 #2
0
    //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;
        }
    }
예제 #3
0
 void GetMoppu()
 {
     itemListManager.SetItem(Item.Moppu);
     itemListManager.UseItem(Item.ClockHint);
     backButton.interactable             = true;
     hintButton.interactable             = true;
     ProgressManager.Instance.colorClock = 1;
     ProgressManager.Instance.SaveProgress();
 }
예제 #4
0
 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();
     }
 }
예제 #5
0
 void GetAlbum()
 {
     threeButtonObject.SetActive(false);
     itemListManager.SetItem(Item.Album);
     itemListManager.UseItem(Item.ThreeButton);
 }