Esempio n. 1
0
 public override void SetSelectedToy(bool set)
 {
     //     Debug.Log("Special button set selected " + set + "\n");
     if (selected == set) return;
     selected = set;
     if (info_box != null) info_box.SetActive(set);
     my_special.ActivateSkill(set);
 }
Esempio n. 2
0
    public void ActivateSkill(EffectType type)
    {
        SpecialSkill skill = _getSkill(type);

        if (skill == null)
        {
            Debug.Log("Skillmaster does not have a skill of type " + type + "\n");
            Noisemaker.Instance.Click(ClickType.Error);
            return;
        }
        Debug.Log("activating " + type + " \n");
        Noisemaker.Instance.Click(ClickType.Action);
        skill.ActivateSkill(true);

        setInventory(type, true);
    }