Example #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);
    }
Example #2
0
 void Start()
 {
     tileMap = GetComponent<TileMapImpl>();
 }
Example #3
0
 void Awake()
 {
     map = GetComponentInChildren<TileMapImpl>();
 }