示例#1
0
 public static void AddLevel(string levelName, SceneRenderer scene)
 {
     if (!String.IsNullOrEmpty(levelName) &&
         !_levels.ContainsKey(levelName))
     {
         if (_initialized)
         {
             _mutex.WaitOne();
             _levels.Add(levelName, scene);
             scene.Load();
             _levelsLoaded++;
             _mutex.ReleaseMutex();
         }
     }
 }