public void OnAbilityInputDown() { //if(hat.currentHatClick < hat.maxNumberOfClicks) // hat.currentHatClick++; if (hat.isCurrentlyAttached || hat.isBeingAttached) { ReleaseHat(); } else { hat.ActivateRepeatedClickAbility(); } /* * if (hat.currentHatClick < 2) { * //if (coolingDown || dashing || hitFreeze) return; * } else { * } */ canPickUpHat = false; }