public void CloseFirstDialogue()
 {
     Debug.Log("closemotherdialogue");
     Destroy(firstdialogue);
     pc.MoveEnable();
     gameplaymenu.SetActive(true);
     InfoBox.SetActive(true);
     joystick.resethandle();
 }
 public void DestroyGoHomeDialogue()
 {
     if (digohome.showscore() == true)
     {
         Debug.Log("destroygohomedialogue");
         Destroy(gohomedialogue);
         Destroy(gohomeretry);
         pc.MoveEnable();
         star1.SetActive(true);
         score += 1;
         gameplaymenu.SetActive(true);
         joystick.resethandle();
     }
     else
     {
         gohomeretry.SetActive(true);
     }
 }
    public void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("Player"))
        {
            Debug.Log("entercattrigger");
            cameragameobject.SetActive(true); gameobject.SetActive(true);
            pc.MoveDisable();

            joystick.resethandle();
            gameplaymenu.SetActive(false);
        }
    }
コード例 #4
0
 public void DestroyGrandmaDialogue()
 {
     if (digrandma.showscore() == true)
     {
         Debug.Log("destroycatdialogue");
         Destroy(grandmadialogue);
         Destroy(grandmaretry);
         Destroy(grandmaview);
         Destroy(Jake);
         grandma2trigger.SetActive(true);
         pc.MoveEnable();
         Jake2.SetActive(true);
         star1.SetActive(true);
         plate.SetActive(true);
         soundcomplete.Play();
         score += 1;
         gameplaymenu.SetActive(true);
         joystick.resethandle();
     }
     else
     {
         grandmaretry.SetActive(true);
     }
 }