コード例 #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);
 }