public override void Execute(Point target)
        {
            this.IsActive(false);
            FaceTargetDirection(target);

            PlacementEffects placement = new PlacementEffects();

            StartCoroutine(placement.JumpCoroutine(this.Unit, target));
        }
示例#2
0
        public override void Execute(Point target)
        {
            if (this.ValidPositions == null || this.ValidPositions.Count == 0)
            {
                return;
            }

            int   randomIndex = this.random.Next(this.ValidPositions.Count);
            Point position    = this.ValidPositions[randomIndex];

            PlacementEffects placement = new PlacementEffects();

            StartCoroutine(placement.JumpCoroutine(this.Unit, position));
        }