Esempio n. 1
0
    void Start()
    {
        tilemapInfo = TilemapInfo.Instance;
        tiles       = Tiles.Instance;
        tilemap     = tilemapInfo.GetTilemap();

        AddDependencies();
    }
Esempio n. 2
0
    // Start is called before the first frame update
    void Start()
    {
        tilemapInfo = TilemapInfo.Instance;
        tilemap     = tilemapInfo.GetTilemap();
        grid        = tilemapInfo.GetGrid();
        tiles       = Tiles.Instance;

        prevHighlightedTile = new PrevHighlightedTile();
        int numDirections = GetDirections().Length;

        highlightedNeighbors = new PrevHighlightedTile[numDirections];
        for (int i = 0; i < numDirections; i++)
        {
            highlightedNeighbors[i] = new PrevHighlightedTile();
        }
    }