Esempio n. 1
0
 // Process animation triggers
 public void ProcessAction(ActionMaster.Action action)
 {
     if (action == ActionMaster.Action.Tidy)
     {
         animator.SetTrigger("tidyTrigger");
     }
     else if (action == ActionMaster.Action.EndTurn)
     {
         animator.SetTrigger("resetTrigger");
         pinCounter.Reset();
     }
     else if (action == ActionMaster.Action.Reset)
     {
         animator.SetTrigger("resetTrigger");
         pinCounter.Reset();
     }
     else if (action == ActionMaster.Action.EndGame)
     {
         Debug.Log("Game is Finished!");
         gameEnd.EndGame();
     }
 }