public void HeavyAttack(CallbackContext context) { if (timeStamp <= Time.time) { if (context.started && playerMovement != null) { playerCombat.isAiming = true; playerCombat.shotReady = true; } //Debug.Log(playerCombat.isAiming); if (context.canceled && playerCombat.shotReady == true && playerMovement != null) { playerCombat.Fire(); timeStamp = Time.time + cooldownSeconds; } } }