public static void Init(ResourceService resService, TaskScheduler mainScheduler) { ServiceMgr.GetServiceMgr().RegisterIService(resService); s_MainScheduler = mainScheduler; Task <AppConfig> appConfig = resService.Get <AppConfig>(new ResourcePath(ResourcePath.PathType.Resource, "XLNConfig.xml")); AppConig = appConfig.Result; if (AppConig != null) { LogService.Logger.Log(LogService.LogType.LT_DEBUG, "AppConfig Load Success"); ServiceMgr.GetServiceMgr().InjectService(AppConig); } ServiceMgr.GetServiceMgr().Init(); }
public override bool OnInit() { m_ResourceService = ServiceMgr.GetServiceMgr().GetService <ResourceService>(); return(base.OnInit()); }
public override bool OnInit() { m_ActorService = ServiceMgr.GetServiceMgr().GetService <ActorService>(); return(base.OnInit()); }