示例#1
0
 public override void OnLevelLoaded(LoadMode mode)
 {
     switch (mode)
     {
     case LoadMode.NewTheme:
     case LoadMode.LoadTheme:
         return;     // unsupported modes.
     }
     LoadTool.Load();
 }
示例#2
0
        public void OnEnabled()
        {
            //Test.Factorial(4); // TODO delete
            try {
                if (HelpersExtensions.currentMode != AppMode.ThemeEditor)
                {
                    LoadTool.Load(); // hot reload
                }
            } catch {                // we are in intro screen.
            }
#if DEBUG
            TestsExperiments.Run();
#endif
        }
示例#3
0
 public override void OnLevelUnloading()
 {
     LoadTool.Release();
 }
示例#4
0
 public void OnDisabled()
 {
     LoadTool.Release();
 }