public Player(int playerId, GameObject playerSpaceShip, TilesGraph curentTile) { this.PlayerId = playerId; this.PlayerSpaceShip = playerSpaceShip; if (curentTile != null) { MovePlayerToTile(curentTile); } }
public void AddConnection(TilesGraph tile, ConnectionType connectionType = ConnectionType.forward) { if (connectionType == ConnectionType.forward) { _forwardConnections.Add(tile); } else { _backwardsConnections.Add(tile); } }
public void MovePlayerToTile(TilesGraph tile) { CurentTile = tile; PlayerSpaceShip.transform.position = tile.transform.position + Vector3.up; }