public UpdateTargetPlayer ( |
||
newGoalTile | ||
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();
}