//---------------------------------------------------------------------------------- // METHODS public override void BaseActionControl() { base.BaseActionControl(); baseInputSpeed.BaseValue = InputSmoothing("Horizontal") * InputMultiplier; //Jumping if (Input.GetButtonDown("Jump")) { jumpAbility.CastAbility(); } if (!Input.GetButton("Jump")) { jumpAbility.Cancel(); } //Gliding if (Input.GetButton("Glide")) { glideAbility.CastAbility(); } if (!Input.GetButton("Glide")) { glideAbility.Cancel(); } if (Input.GetKey(KeyCode.B)) { focusHealAbility.CastAbility(); } //Blast Attack /* * if (Input.GetMouseButtonDown(0)) * { * blastAbility.CastAbility(); * } */ //[DEBUG] if (Input.GetKeyDown(KeyCode.R)) { RespawnSwathe(); } if (Input.GetAxis("Vertical") > 0 && IsGrounded) { interactableMethod?.Invoke(); } if (Input.GetButtonDown("Jump")) { wallJumpAbility.CastAbility(); } //Dashing if (Input.GetButtonDown("Dash")) { dashAbility.CastAbility(); } //Slash if (Input.GetButtonDown("Slash")) { if (!vaultAbility.CanActivate) { slashAbility.CastAbility(); } else { //Vault vaultAbility.CastAbility(); } } /* * //Vault Toggle * if (Input.GetButtonDown("Vault")) * { * vaultAbility.Toggle(); * } */ }