internal Tile(GameField map, Vector3 player_position) { this._map = map; int col = (int)(Math.Abs(player_position.x) / map.TileSize) + 1; int row = (int)(Math.Abs(player_position.z) / map.TileSize) + 1; // Set the rest: this.Init(row, col); }
internal Tile(GameField map, int row, int column) { this._map = map; this.Init(row, column); }