コード例 #1
0
        private void MoveToAlignWithPlayer()
        {
            Point possibleMovement = AIUtils.AlignToPlayerUnit(this.Unit.UnitsMap, this.Unit, this.validPaths);

            if (possibleMovement == default)
            {
                return;
            }

            List <Point>     path      = this.validPaths[possibleMovement];
            PlacementEffects placement = new PlacementEffects();

            this.StartCoroutine(placement.LerpMovementPath(this, this.Unit, SetPathOrder(path)));
            //// PlacementHelper.Move(this.Unit, possibleMovement, new MoveUnitValidator(this.Unit, possibleMovement));
        }