Beispiel #1
0
 //Called when the player presses the sp. attack button
 public void SpecialAttack()
 {
     if (hasEvilAttack || hasGoodAttack)
     {
         if (mDashing)
         {
             mDashing = false;
             mCanDash = false;
         }
         if (hasEvilAttack)
         {
             combatComponent.EvilAttack(rigidbody.velocity, mGoingRight);
         }
         else
         {
             combatComponent.GoodAttack(rigidbody.velocity, mGoingRight);
         }
     }
 }