private static void TestMapClone() { TileMapImpl tm = (TileMapImpl) new TileMapFactoryImpl().Def(); Tile[,] tiles = tm.GetMap(); Debug.Assert(tiles.GetLength(1) == tm.Width); Debug.Assert(tiles.GetLength(0) == tm.Height); }
void Start() { tileMap = GetComponent<TileMapImpl>(); }
void Awake() { map = GetComponentInChildren<TileMapImpl>(); }