public void ExitMelee() { // Player is released, allowed to move player.state = PlayerController.State.idle; activeAttack.SetEnabled(false); activeAttack = null; }
/* 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>(); }