public void Setup() { //初始化日志,放最前面 Log4Helper.Init(log4net.LogManager.GetLogger("loginfo"), log4net.LogManager.GetLogger("loginfo"), log4net.LogManager.GetLogger("logerror"), log4net.LogManager.GetLogger("logerror")); Log.Info("开启时间(" + DateTime.Now.ToString() + ")"); ServerConfig.Load(); Console.Title = "SS:" + ServerConfig.net_info.server_uid; Framework.Instance.Setup(Tick); DataManager.Instance.Setup(); DBManager.Instance.Setup(); ServerNetManager.Instance.Setup(); SceneManager.Instance.Setup(); UnitManager.Instance.Setup(); AOIManager.Instance.Setup(); ServerCmdManager.Instance.Setup(); DBEventManager.Instance.Setup(); CounterManager.Instance.Setup(); MailboxManager.Instance.Setup(); RelationManager.Instance.Setup(); ChatManager.Instance.Setup(); FightManager.Instance.Setup(); }