Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
 void Start()
 {
     tileMap = GetComponent<TileMapImpl>();
 }
Exemplo n.º 3
0
 void Awake()
 {
     map = GetComponentInChildren<TileMapImpl>();
 }