Exemple #1
0
 public static ConsoleModel getEditorConsoleModel()
 {
     if (editorModel == null)
     {
         editorModel = new ConsoleModel();
         editorModel.init();
     }
     return(editorModel);
 }
Exemple #2
0
 public static ConsoleModel getGameConsoleModel()
 {
     if (consoleModel == null)
     {
         consoleModel = new ConsoleModel();
         consoleModel.init();
         consoleModel.enable();
     }
     return(consoleModel);
 }
Exemple #3
0
    public static void init()
    {
        if (!isInit)
        {
            isInit = true;

            if (loggerModel == null)
            {
                loggerModel = new LoggerModel();
            }

            if (consoleModel == null)
            {
                consoleModel = new ConsoleModel();
                consoleModel.init();
                consoleModel.enable();
            }
        }
    }