public void Init(ModularSpell owner) { // Init onCastActions foreach (IOnCastAction onCastAction in onCastActions) { onCastAction.Init(owner); } owner.AddOnHitAction(this); }
public void Init(ModularSpell owner) { _owner = owner.owner; if (!animateCaster) { _animator = _owner.GetComponent <Animator>(); } owner.AddOnHitAction(this); }
public void Init(ModularSpell owner) { owner.AddOnHitAction(this); }