void initAbility(Ability ability) { if (ability == null) return; Debug.Log("init abilities for" + gameObject.name); ability.setCaster(gameObject); ability.registerEffects(); }