UHSampleGame.CoreObjects.Units.Unit.UpdateTargetPlayer C# (CSharp) Method

UpdateTargetPlayer() public method

public UpdateTargetPlayer ( Tile &newGoalTile, int newTargetPlayer ) : void
newGoalTile UHSampleGame.TileSystem.Tile
newTargetPlayer int
return void
        public void UpdateTargetPlayer(ref Tile newGoalTile, int newTargetPlayer)
        {
            goalTileID = newGoalTile.ID;
            PlayerToAttack = newTargetPlayer;

            SetFocalPointAndVelocity(TileMap.Tiles[CurrentTileID].PathsInts[newGoalTile.ID][1]);//currentTile.Paths[goalTile.ID][1]);

            Status = UnitStatus.Deployed;

            UpdatePath();
            UpdateTransforms();
        }