Exemple #1
0
        public void Init(ModularSpell owner)
        {
            _owner    = owner.owner;
            _animator = _owner.GetComponent <Animator>();

            owner.AddOnCastAction(this);
        }
Exemple #2
0
        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);
            }
        }
Exemple #4
0
        public void Init(ModularSpell owner)
        {
            _owner = owner.owner;
            if (!animateCaster)
            {
                _animator = _owner.GetComponent <Animator>();
            }

            owner.AddOnHitAction(this);
        }
Exemple #5
0
        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);
        }
Exemple #8
0
        public void Init(ModularSpell owner)
        {
            _owner = owner;

            owner.AddOnCastAction(this);
        }
 public void Init(ModularSpell owner)
 {
     owner.AddOnHitAction(this);
 }
Exemple #10
0
        public void Init(ModularSpell owner)
        {
            _ownerTransform = owner.transform;

            owner.AddOnCastAction(this);
        }