Пример #1
0
        public AttributeComponent(string key)
        {
            DataModelService = ServiceMgr.GetServiceMgr().GetService <DataModelService>();
            m_key            = key;

            m_Attribute = DataModelService.AttributeCollections[this.GetType().FullName].DataAttributes[Key];
        }
Пример #2
0
 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);
 }
Пример #3
0
        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();
        }
Пример #4
0
 void OnApplicationQuit()
 {
     ServiceMgr.GetServiceMgr().OnDestroy();
 }
Пример #5
0
 void Update()
 {
     ServiceMgr.GetServiceMgr().Update(Time.deltaTime);
 }
Пример #6
0
 public ActorComponent()
 {
     m_ActorService = ServiceMgr.GetServiceMgr().GetService <ActorService>();
 }
Пример #7
0
 static void OnAfterSceneLoadRuntimeMethod()
 {
     ServiceMgr.GetServiceMgr().OnEvent(0);
 }
Пример #8
0
 public override bool OnInit()
 {
     m_ActorService = ServiceMgr.GetServiceMgr().GetService <ActorService>();
     return(true);
 }