Пример #1
0
    public void StartAbility(bool userTargeting = true)
    {
        if (CandyCornCost <= CandyCornManager.GetTotalCandyCorn())
        {
            // Hide UI for Allies
            Costume costume = GetComponentInChildren <Costume>();
            if (costume)
            {
                costume.DisplayAbilities(false);
            }

            TargetSelector.Target(this, userTargeting);
        }
        else
        {
            StartCoroutine(ShowNotEnoughCandiesPrompt());
        }
    }