Exemple #1
0
        public static void LoadScene(int id)
        {
            if (id < 0 || id > scene_list.Count - 1)
            {
                return;
            }
            cur_sc_id = id;

            CurrentScene = scene_list[id];
            CurrentScene.Start();
        }
Exemple #2
0
 private static void Initialize(int pos)
 {
     LoadScene(0);
     if (CurrentScene == null)
     {
         return;
     }
     tr = new Thread(GetInput);
     tr.IsBackground = true;
     tr.Start();
     CurrentScene.Start();
     FrameNumerator();
 }