Example #1
0
 private void Update()
 {
     if (EnemyObject == null)
     {
         if (!isCalledOnece)
         {
             Cursor.visible   = true;
             Cursor.lockState = CursorLockMode.None;
             ImgObject2.SetActive(true);
             nextbutton2.SetActive(true);
             Player.GetComponent <KotodamariScript>().enabled = false;
             Playercamera.Camera.GetComponent <PlayerController>().enabled = false;
             MenuUIObject.GetComponent <MenuController>().enabled          = false;
             HpBarUI.SetActive(false);
             ReticleUI.SetActive(false);
             NameText.SetActive(false);
             TalkText.SetActive(false);
             Exptext.SetActive(false);
             isCalledOnece = true;
         }
     }
     if (hpbar.hp > 4)
     {
         if (Apple == null && !isCalledOnce2)
         {
             EnemyObject2.SetActive(true);
             exptext.fontSize = 40;
             exptext.text     = ("おばけが襲ってきた!\n\n倒そう!");
             isCalledOnce2    = true;
         }
     }
     if (isCalledOnce2)
     {
         if (EnemyObject2 == null)
         {
             if (!isCalledOnce3)
             {
                 StartCoroutine("TutorialEnd");
                 isCalledOnce3 = true;
             }
         }
     }
 }
Example #2
0
 public void NextButton()
 {
     Debug.Log(" botann");
     Cursor.visible   = false;
     Cursor.lockState = CursorLockMode.Locked;
     if (ImgObject.activeSelf)
     {
         ImgObject.SetActive(false);
     }
     else if (ImgObject2.activeSelf)
     {
         ImgObject2.SetActive(false);
         exptext.text     = ("回復:「リンゴ」\n\n\nりんごに向かって「リンゴ」のコトダマを飛ばそう。");
         exptext.fontSize = 40;
     }
     nextbutton.SetActive(false);
     Player.GetComponent <KotodamariScript>().enabled = true;
     Playercamera.Camera.GetComponent <PlayerController>().enabled = true;
     MenuUIObject.GetComponent <MenuController>().enabled          = true;
     HpBarUI.SetActive(true);
     ReticleUI.SetActive(true);
     Exptext.SetActive(true);
 }