public void Start() { tileMap = GameMap.Instance.tileMap; connectedTileMap = GameMap.Instance.connectedTileMap; interactionMap = this.gameObject.AddComponent <InteractionTileMap>(); }
private void InitTileMap() { tileMap = new GameObject("TileObjects").AddComponent <TileMap>(); tileMap.transform.parent = transform; tileMap.transform.position = new Vector3(0f, 0f, 0f); }