Example #1
0
 public void ExitMelee()
 {
     // Player is released, allowed to move
     player.state = PlayerController.State.idle;
     activeAttack.SetEnabled(false);
     activeAttack = null;
 }
Example #2
0
 /* Melee hitbox controls, used by player animator
  * Each melee animation should have three phases:
  * Buildup, Contact, Recovery
  */
 public void EnterMelee(string attack)
 {
     // Player is locked down, animation starts
     player.state  = PlayerController.State.melee;
     continueCombo = false;
     comboAllowed  = false;
     comboAdvance  = false;
     activeAttack  = attackHitboxParent.Find(attack).GetComponent <PlayerMeleeCollider>();
 }