Esempio n. 1
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();
 }