Пример #1
0
        protected override void OnShow(object userData)
        {
            base.OnShow(userData);

            m_Data = (HotfixEntityData)userData;
            m_OnShow.Invoke(m_Data.UserData);
        }
Пример #2
0
        protected override void OnHide(object userData)
        {
            base.OnHide(userData);

            m_OnHide.Invoke(userData);

            //归还实体数据引用
            ReferencePool.Release(m_Data);
        }
Пример #3
0
        protected override void OnUpdate(float elapseSeconds, float realElapseSeconds)
        {
            if (!CanUpdate)
            {
                return;
            }

            base.OnUpdate(elapseSeconds, realElapseSeconds);

            m_OnUpdate.Invoke(elapseSeconds, realElapseSeconds);
        }
Пример #4
0
        protected override void OnDetachFrom(UnityGameFramework.Runtime.EntityLogic parentEntity, object userData)
        {
            base.OnDetachFrom(parentEntity, userData);

            m_OnDetachFrom.Invoke(parentEntity, userData);
        }
Пример #5
0
        protected override void OnDetached(UnityGameFramework.Runtime.EntityLogic childEntity, object userData)
        {
            base.OnDetached(childEntity, userData);

            m_OnDetached.Invoke(childEntity, userData);
        }
Пример #6
0
        protected override void OnPause()
        {
            base.OnPause();

            m_OnPause?.Invoke();
        }
Пример #7
0
        protected override void OnClose(object userData)
        {
            base.OnClose(userData);

            m_OnClose?.Invoke(userData);
        }
Пример #8
0
        protected override void OnAttached(EntityLogic childEntity, Transform parentTransform, object userData)
        {
            base.OnAttached(childEntity, parentTransform, userData);

            m_OnAttached.Invoke(childEntity, parentTransform, userData);
        }
Пример #9
0
 private void Update()
 {
     m_Update?.Invoke(Time.deltaTime, Time.unscaledDeltaTime);
 }
Пример #10
0
        protected override void OnCover()
        {
            base.OnCover();

            m_OnCover?.Invoke();
        }
Пример #11
0
        protected override void OnResume()
        {
            base.OnResume();

            m_OnResume?.Invoke();
        }
Пример #12
0
        protected override void OnUpdate(float elapseSeconds, float realElapseSeconds)
        {
            base.OnUpdate(elapseSeconds, realElapseSeconds);

            m_OnUpdate.Invoke(elapseSeconds, realElapseSeconds);
        }
Пример #13
0
        protected override void OnDetachFrom(EntityLogic parentEntity, object userData)
        {
            base.OnDetachFrom(parentEntity, userData);

            m_OnDetachFrom.Invoke(parentEntity, userData);
        }
Пример #14
0
        protected override void OnAttachTo(EntityLogic parentEntity, Transform parentTransform, object userData)
        {
            base.OnAttachTo(parentEntity, parentTransform, userData);

            m_OnAttachTo.Invoke(parentEntity, parentTransform, userData);
        }
Пример #15
0
        protected override void OnDetached(EntityLogic childEntity, object userData)
        {
            base.OnDetached(childEntity, userData);

            m_OnDetached.Invoke(childEntity, userData);
        }
Пример #16
0
        protected override void OnReveal()
        {
            base.OnReveal();

            m_OnReveal?.Invoke();
        }
Пример #17
0
        protected override void OnRefocus(object userData)
        {
            base.OnRefocus(userData);

            m_OnRefocus?.Invoke(userData);
        }
Пример #18
0
        protected override void OnAttached(UnityGameFramework.Runtime.EntityLogic childEntity, Transform parentTransform, object userData)
        {
            base.OnAttached(childEntity, parentTransform, userData);

            m_OnAttached.Invoke(childEntity, parentTransform, userData);
        }
Пример #19
0
        protected override void OnOpen(object userData)
        {
            base.OnOpen(userData);

            m_OnOpen?.Invoke(userData);
        }
Пример #20
0
 private void OnDestroy()
 {
     m_ShutDown?.Invoke();
 }
Пример #21
0
        protected override void OnDepthChanged(int uiGroupDepth, int depthInUIGroup)
        {
            base.OnDepthChanged(uiGroupDepth, depthInUIGroup);

            m_OnDepthChanged?.Invoke(uiGroupDepth, depthInUIGroup);
        }