public override void Execute(Point target) { this.IsActive(false); FaceTargetDirection(target); PlacementEffects placement = new PlacementEffects(); StartCoroutine(placement.JumpCoroutine(this.Unit, target)); }
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)); }