Example #1
0
    public void OnUseAbility(InputValue val)
    {
        if (powerBar.PowerCheck())
        {
            switch (currentAbility)
            {
            case Ability.SHIELD:
                Shield();

                break;

            case Ability.GRENADE:
                Grenade();

                break;

            default:
                break;
            }
        }
    }