public AttributeComponent(string key) { DataModelService = ServiceMgr.GetServiceMgr().GetService <DataModelService>(); m_key = key; m_Attribute = DataModelService.AttributeCollections[this.GetType().FullName].DataAttributes[Key]; }
void Awake() { ServiceMgr.GetServiceMgr().RegisterService(new UnityLogService()); ServiceMgr.GetServiceMgr().RegisterService(new GameObjectPoolService()); //LogService service =ServiceMgr.GetServiceMgr().GetService<LogService>(); XLN.Game.Common.ApplicationContext.Init(new UnityResourceService(), UnitySystem.UnityScheduler); }
public override void Init() { base.Init(); m_GOPoolService = ServiceMgr.GetServiceMgr().GetService <GameObjectPoolService>(); m_ResService = ServiceMgr.GetServiceMgr().GetService <ResourceService>(); UnityActor unityActor = (UnityActor)Actor; m_GameObject = unityActor.GameObject; UpdateRenderObject(); }
void OnApplicationQuit() { ServiceMgr.GetServiceMgr().OnDestroy(); }
void Update() { ServiceMgr.GetServiceMgr().Update(Time.deltaTime); }
public ActorComponent() { m_ActorService = ServiceMgr.GetServiceMgr().GetService <ActorService>(); }
static void OnAfterSceneLoadRuntimeMethod() { ServiceMgr.GetServiceMgr().OnEvent(0); }
public override bool OnInit() { m_ActorService = ServiceMgr.GetServiceMgr().GetService <ActorService>(); return(true); }