// Start is called before the first frame update void Start() { this.tilemapInfo = TilemapInfo.Instance; this.grid = tilemapInfo.GetGrid(); this.sprite = this.GetComponent <Sprite>(); isInitialized = true; }
// 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(); } }