Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        _TileMap = WorldController.GetWorldController.TileMap;
        Lib      = WorldController.GetWorldController.GetComponentInChildren <TileLibrary>();
        MSC      = WorldController.GetWorldController.GetComponentInChildren <MapSaveController>();
        Dictionary <int, GameObject> t = Lib.GetTileList();

        TileIds = new List <int>(t.Keys);
        TileIds.Sort();
    }
Example #2
0
 void Start()
 {
     TileMap    = WorldController.GetWorldController.TileMap;
     TileLib    = WorldController.GetWorldController.GetComponentInChildren <TileLibrary>();
     MapSaver   = WorldController.GetWorldController.GetComponentInChildren <MapSaveController>();
     MenuScript = GetComponent <MenuScript>();
     if (StaticMapInfo.Level != "" && StaticMapInfo.LoadingIntoLevelEditor)
     {
         HideAllDialogPanels();
         _yourMapsPanel.SetActive(false);
         //  MapSaver.LoadTileSet(StaticMapInfo.Level);
     }
 }