Beispiel #1
0
 public void EnterWorld(int mapID)
 {
     Ect      = new EffectSystem();
     Fly      = new FlywordSystem();
     Hud      = new HUDSystem();
     Act      = new ActSystem();
     Nts      = new NodeTreeSystem();
     Plt      = new PlotSystem();
     Cut      = new VideoSystem();
     WorldMap = new GameObject("FTWorldMap").AddComponent <FTWorldMap>();
     WorldMap.MapLoadFinish = OnLoadMapFinished;
     WorldMap.EnterWorld(mapID);
 }
Beispiel #2
0
 public void EnterWorld(int mapID)
 {
     Lvl = GameObject.FindObjectOfType <LevelSystem>();
     if (Lvl == null)
     {
         GameObject go = new GameObject("LevelSystem");
         Lvl = go.AddComponent <LevelSystem>();
     }
     else
     {
         Lvl.DelAllElements();
     }
     CharacterManager.Instance.SetRoot(Lvl.transform);
     Ect    = new EffectSystem();
     Fly    = new FlywordSystem();
     Hud    = new HUDSystem();
     Act    = new ActSystem();
     Nts    = new NodeTreeSystem();
     Plt    = new PlotSystem();
     Cut    = new VideoSystem();
     Lvl.Id = mapID;
     Lvl.Startup();
 }