public void Init(ModularSpell owner)
        {
            // Init onCastActions
            foreach (IOnCastAction onCastAction in onCastActions)
            {
                onCastAction.Init(owner);
            }

            owner.AddOnHitAction(this);
        }
Esempio n. 2
0
        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);
 }