コード例 #1
0
ファイル: Player.cs プロジェクト: lishuwei115/Koth-Switch
    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;
    }