Example #1
0
 public void addFoodAbilities(Ability foodAbility)
 {
     foodAbilities.Add(foodAbility);
     foodAbility.setCaster(this);
 }
Example #2
0
    void initAbility(Ability ability)
    {
        if (ability == null) return;

        Debug.Log("init abilities for" + gameObject.name);
        ability.setCaster(gameObject);
        ability.registerEffects();
    }
Example #3
0
 public void addCharAbilities(Ability charAbility)
 {
     innateAbilities.Add(charAbility);
     charAbility.setCaster(this);
 }