Example #1
0
 public void OnHeadClick()
 {
     if (this.state == State.WaitingHeadClick)
     {
         this.state = State.MoveToMouse;
         head.OpenTheMouse();
         StartCoroutine(ShowMoveToMouseAnimation());
     }
     else if (this.state == State.WaitEyeClick)
     {
         this.state = State.Eating;
         head.StopBlinkEyes();
         StartCoroutine(ShowEatAnimation());
     }
     else if (this.state == State.WaitEnd)
     {
         SceneMaster.Restart();
     }
 }