コード例 #1
0
 private static void InitConfigs()
 {
     try
     {
         ErrorHandler.AddHandler(Assembly.GetExecutingAssembly().GetName().Version.ToString(), ENSource.Building,
                                 Application.StartupPath, clsRegistery.GetRegistery("U1001ML"));
         ClsCache.Init(AppSettings.DefaultConnectionString, clsGlobalSetting.HardDriveSerial);
         Logger.init(Application.StartupPath, "BuidlingEventLog.txt", true);
         ErrorManager.Init(ENSource.Building, null);
     }
     catch (Exception ex)
     {
         WebErrorLog.ErrorInstence.StartErrorLog(ex);
     }
 }
コード例 #2
0
    void Awake()
    {
        eventSys = DuelEventSys.GetInstance;

        gameHallHandler = GameHallHandler.GetInstance();
        loginHandler    = LoginHandler.GetInstance();
        errorManager    = ErrorManager.GetInstance();
        duelHandler     = DuelHandler.GetInstance();

        errorManager.Init();
        loginHandler.Init();
        gameHallHandler.Init();
        //AccountInfoDTO dto = new AccountInfoDTO();
        //dto.account = "2";
        //dto.password = "******";
        //NetWorkScript.Instance.write(LoginProtool.LOGIN_CREQ, 1, 2, dto);
    }