using System.Collections; using System.Collections.Generic; using UnityEngine; public class World { Tile[,] tiles; int width; int height; public World (int width = 200, int height = 200) { this.width = width; this.height = height; tiles = new Tile[width, height]; for (int x = 0; x < width; x++) { for (int y = 0; y < height; y++) { tiles[x, y] = new Tile[this, x, y]; } } } public Tile GetTileAt(int x, int y) { if (x > width || x < 0 || y > height || y < 0) { Debug.LogError ("Tile (" + x + ", " + y + ") is out of range"); return null; } return tiles [x, y]; } } anyone see anything wrong with this code because on line 18 of my code i get this error "cannot implicitly convert type 'World' to 'int' and i don't know what is going wrong.