Example #1
0
 public void SwiperAction(ActionMaster.Action action)
 {
     // Beware !! any actionMaster.Bowl() will push the bowl count.
     if (action == ActionMaster.Action.Tidy)
     {
         animator.SetTrigger("tidyTrigger");
         pinCounter.Tidy();
     }
     else if (action == ActionMaster.Action.Reset)
     {
         animator.SetTrigger("resetTrigger");
         pinCounter.Reset();
     }
     else if (action == ActionMaster.Action.EndTurn)
     {
         animator.SetTrigger("resetTrigger");
         pinCounter.Reset();
     }
     else if (action == ActionMaster.Action.EndGame)
     {
         animator.SetTrigger("resetTrigger");
         pinCounter.Reset();
         throw new UnityException("Don't know what to do now.");
     }
 }