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

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

            owner.AddOnHitAction(this);
        }
예제 #5
0
        public void Init(ModularSpell owner)
        {
            _owner = owner;

            // Init OnHitActions
            foreach (IOnHitAction onHitAction in OnHitActions)
            {
                onHitAction.Init(owner);
            }

            owner.AddOnCastAction(this);
        }
예제 #6
0
        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);
        }
예제 #8
0
        public void Init(ModularSpell owner)
        {
            _owner = owner;

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

            owner.AddOnCastAction(this);
        }