Exemplo n.º 1
0
 public void PerformAction(ActionMaster.Action action)
 {
     if (action == ActionMaster.Action.Tidy)
     {
         Tidy();
     }
     else if (action == ActionMaster.Action.Reset)
     {
         Reset();
         pinCounter.ResetCount();
     }
     else if (action == ActionMaster.Action.EndTurn)
     {
         Reset();
         pinCounter.ResetCount();
     }
     else if (action == ActionMaster.Action.EndGame)
     {
         Reset();
     }
     else
     {
         Debug.Log("shouldnt get here");
     }
 }
Exemplo n.º 2
0
 public void PerformAction(ActionMaster.Action action)
 {
     if (action == ActionMaster.Action.Tidy)
     {
         animator.SetTrigger("tidyTrigger");
     }
     else if (action == ActionMaster.Action.EndTurn)
     {
         animator.SetTrigger("resetTrigger");
         pinCounter.ResetCount();
     }
     else if (action == ActionMaster.Action.Reset)
     {
         animator.SetTrigger("resetTrigger");
         pinCounter.ResetCount();
     }
     else if (action == ActionMaster.Action.EndGame)
     {
         throw new UnityException("Don't know how to handle EndGame yet");
     }
 }