示例#1
0
        public void OnHit(GameActor actor, Vector3 castDirection, Vector3 movementDirection)
        {
            if (InOppositeDirection)
            {
                castDirection *= -1;
            }

            if (MoveHitActor)
            {
                _owner.StartCoroutine(MoveActor(actor, castDirection));
            }

            if (MoveCaster)
            {
                _owner.StartCoroutine(MoveActor(_owner.owner, castDirection));
            }
        }
示例#2
0
        public void OnCast(Vector3 castDirection, Vector3 movementDirection)
        {
            if (UseMovementInput)
            {
                castDirection = movementDirection;
            }

            if (InOppositeDirection)
            {
                castDirection *= -1;
            }

            _owner.StartCoroutine(MoveActor(_owner.owner, castDirection));
        }
        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 OnCast(Vector3 castDirection, Vector3 movementDirection)
 {
     _owner.StartCoroutine(DelayedCast(castDelay,
                                       new Vector3(castDirection.x, castDirection.y, castDirection.z),
                                       new Vector3(movementDirection.x, movementDirection.y, movementDirection.z)));
 }
 public void OnHit(GameActor actor, Vector3 castDirection, Vector3 movementDirection)
 {
     _owner.StartCoroutine(DelayOnHitEffects(delayAmount, actor, castDirection, movementDirection));
 }
示例#6
0
 public void OnCast(Vector3 castDirection, Vector3 movementDirection)
 {
     _owner.StartCoroutine(DoCasts(castDirection, movementDirection));
 }