void Start() { tilemapInfo = TilemapInfo.Instance; tiles = Tiles.Instance; tilemap = tilemapInfo.GetTilemap(); AddDependencies(); }
// 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(); } }