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); } }
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); }