Exemplo n.º 1
0
 public void ExecuteTrick()
 {
     Debug.Log("Executing trick with currentSwipe: " + PrintList(currentSwipe));
     if (tricktionary.ContainsKey(currentSwipe))
     {
         Trick t = tricktionary[currentSwipe];
         if (t.unlocked)
         {
             if (donnaManager.state == EnumPTrapezeState.InAir)
             {
                 OnDuoTrick();
                 ExecuteTrickDonna(currentSwipe);
                 gm.trickGUI.DidTrick("Duo " + t.name, t.score * 4);
             }
             else
             {
                 gm.trickGUI.DidTrick(t.name, t.score);
             }
             playerManager.DoAnimation(t.playerAnimFile);
         }
     }
     currentSwipe.Clear();
     timer = 0;
 }