Example #1
0
    public static void ErrorClearFirst(string msg)
    {
#if _Develop
        Debug.Log(msg);
#endif //_Develop
        ErrMessageBox.ClearFirstMessage(msg);
    }
Example #2
0
    //弹出报错提示框
    public static void Error(string msg)
    {
#if _Develop
        Debug.Log(msg);
#endif //_Develop
        ErrMessageBox.ShowErrMessage(msg);
    }
    //初始化函数
    public override void Initialization()
    {
        //首先在启动过程中先查看是否出现了错误,如果出现了错误需要显示错误信息
        //然后就不进行下面的过程了
        if (ErrMessageBox.IsShowErrMessageBox)
        {
            ErrMessageBox.ShowErrMessage("游戏启动发生错误,无法进入游戏!");
            return;
        }
        //进入游戏待机画面
        base.Initialization();

        checkedEvent = CheckedEvent.Eve_Start;
        SelfCheckingProcess(null);
    }
 //初始化函数
 public override void Initialization()
 {
     //首先在启动过程中先查看是否出现了错误,如果出现了错误需要显示错误信息
     //然后就不进行下面的过程了
     if (ErrMessageBox.IsShowErrMessageBox)
     {
         ErrMessageBox.ShowErrMessage("游戏启动发生错误,停止自检过程!");
         return;
     }
     //进入游戏待机画面
     base.Initialization();
     guiModule = GameRoot.gameResource.LoadResource_Prefabs("SelfCheckingWindows.prefab").GetComponent <GuiModule>();
     //创建出来自检画面
     guiModule.mainGroup.AutoWidth       = new GuiVector2(1.0f, 0.0f);
     guiModule.mainGroup.AutoHeight      = new GuiVector2(1.0f, 0.0f);
     guiModule.mainGroup.BackgroupSeting = new GuiBackgroup(guiModule.skin.box);
     textdoc            = guiModule.RegisterGuiLableTextDoc("", "", 0.1f, 0.1f, guiModule.skin.label, Color.white, int.MaxValue);
     textdoc.AutoWidth  = new GuiVector2(1.0f, 0.0f);
     textdoc.AutoHeight = new GuiVector2(1.0f, 0.0f);
     //再次加载游戏配置信息,因为从控制台退出后也是会重新开始这个过程的
     UniGameOptionsDefine.LoadGameOptionsDefine();
     //显示非致命错误
     if (GameRoot.non_fatal_error_list != null)
     {
         ShowMessage("发生非致命错误:");
         for (int i = 0; i < GameRoot.non_fatal_error_list.Count; i++)
         {
             ShowMessage(GameRoot.non_fatal_error_list[i]);
         }
         GameRoot.non_fatal_error_list = null;
         ShowMessage("");
         ShowMessage("");
     }
     checkedEvent = CheckedEvent.Eve_Start;
     SelfCheckingProcess(null);
 }