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