예제 #1
0
 void Saw()
 {
     if (actionCounter == 0)
     {
         if (PlayerEnergy.ConsumeEnergy(EnergyAction.SAW_PUSH))
         {
             actionCounter = 1;
             CharacterAnimator.StartActionLoop();
             StartCoroutine(ChangeCounterAfterSaw());
         }
     }
 }
예제 #2
0
 void ChopVertical()
 {
     if (actionCounter == 0)
     {
         if (PlayerEnergy.ConsumeEnergy(EnergyAction.VERTICAL_CHOP))
         {
             actionCounter = 1;
             CharacterAnimator.StartActionLoop();
             StartCoroutine(ChopVerticalAfterAnim());
         }
     }
 }
예제 #3
0
 void ChopDiagonal()
 {
     if (actionCounter == 0)
     {
         if (PlayerEnergy.ConsumeEnergy(EnergyAction.HORIZONTAL_CHOP))
         {
             actionCounter = 1;
             CharacterAnimator.StartActionLoop();
             StartCoroutine(ChopDiagonalAfterAnim());
         }
     }
 }