public void Init(ModularSpell owner) { _owner = owner.owner; _animator = _owner.GetComponent <Animator>(); owner.AddOnCastAction(this); }
public void Init(ModularSpell owner) { owner.AddOnCastAction(this); // Init castActions foreach (IOnCastAction onCastAction in castActions) { onCastAction.Init(owner); } }
public void Init(ModularSpell owner) { _owner = owner; // Init the OnHitActions foreach (IOnHitAction onHitAction in OnHitActions) { onHitAction.Init(owner); } }
public void Init(ModularSpell owner) { _owner = owner.owner; if (!animateCaster) { _animator = _owner.GetComponent <Animator>(); } owner.AddOnHitAction(this); }
public void Init(ModularSpell owner) { _owner = owner; // Init OnHitActions foreach (IOnHitAction onHitAction in OnHitActions) { onHitAction.Init(owner); } owner.AddOnCastAction(this); }
public void Init(ModularSpell owner) { _owner = owner; // Init child actions foreach (IOnHitAction onHitAction in OnHitActions) { onHitAction.Init(owner); } _squaredInnerRadius = innerRadius * innerRadius; owner.AddOnCastAction(this); }
public void Init(ModularSpell owner) { _owner = owner; if (_owner.owner) { _player = _owner.owner.GetComponent <PlayerController>(); } else { _owner.StartCoroutine(GetPlayer(0.1f)); } owner.AddOnCastAction(this); }
public void Init(ModularSpell owner) { _owner = owner; owner.AddOnCastAction(this); }
public void Init(ModularSpell owner) { owner.AddOnHitAction(this); }
public void Init(ModularSpell owner) { _ownerTransform = owner.transform; owner.AddOnCastAction(this); }