void Update() { if (!inputEnabled) { return; } // Quick Spin if (GlobalData.GetAttack1ButtonDown() && playerMovementScript.playerCloseToGround && !playerMovementScript.playerSliding && !windPullEnabled) { chargingQuickSpin = true; playerMovementScript.DisableInput(); playerAnimator.SetBool(quickSpin, chargingQuickSpin); } if (chargingQuickSpin && !GlobalData.GetAttack1Button()) { chargingQuickSpin = false; playerMovementScript.EnableInput(); playerAnimator.SetBool(quickSpin, chargingQuickSpin); soundManagerScript.PlayAttack1Sound(); quickSpinTimer = 0f; } // Wind Pull if (GlobalData.GetAttack2Button() && quickSpinTimer < 0f && !windPullEnabled) { windPullEnabled = true; playerMovementScript.DisableInput(); playerAnimator.SetBool(windPull, windPullEnabled); soundManagerScript.PlayAttack2Sound(); } if (windPullEnabled && !GlobalData.GetAttack2Button()) { windPullEnabled = false; playerMovementScript.EnableInput(); playerAnimator.SetBool(windPull, windPullEnabled); soundManagerScript.StopAttack2Sound(); } }