protected override void OnShow(object userData) { base.OnShow(userData); m_Data = (HotfixEntityData)userData; m_OnShow.Invoke(m_Data.UserData); }
protected override void OnHide(object userData) { base.OnHide(userData); m_OnHide.Invoke(userData); //归还实体数据引用 ReferencePool.Release(m_Data); }
protected override void OnUpdate(float elapseSeconds, float realElapseSeconds) { if (!CanUpdate) { return; } base.OnUpdate(elapseSeconds, realElapseSeconds); m_OnUpdate.Invoke(elapseSeconds, realElapseSeconds); }
protected override void OnDetachFrom(UnityGameFramework.Runtime.EntityLogic parentEntity, object userData) { base.OnDetachFrom(parentEntity, userData); m_OnDetachFrom.Invoke(parentEntity, userData); }
protected override void OnDetached(UnityGameFramework.Runtime.EntityLogic childEntity, object userData) { base.OnDetached(childEntity, userData); m_OnDetached.Invoke(childEntity, userData); }
protected override void OnPause() { base.OnPause(); m_OnPause?.Invoke(); }
protected override void OnClose(object userData) { base.OnClose(userData); m_OnClose?.Invoke(userData); }
protected override void OnAttached(EntityLogic childEntity, Transform parentTransform, object userData) { base.OnAttached(childEntity, parentTransform, userData); m_OnAttached.Invoke(childEntity, parentTransform, userData); }
private void Update() { m_Update?.Invoke(Time.deltaTime, Time.unscaledDeltaTime); }
protected override void OnCover() { base.OnCover(); m_OnCover?.Invoke(); }
protected override void OnResume() { base.OnResume(); m_OnResume?.Invoke(); }
protected override void OnUpdate(float elapseSeconds, float realElapseSeconds) { base.OnUpdate(elapseSeconds, realElapseSeconds); m_OnUpdate.Invoke(elapseSeconds, realElapseSeconds); }
protected override void OnDetachFrom(EntityLogic parentEntity, object userData) { base.OnDetachFrom(parentEntity, userData); m_OnDetachFrom.Invoke(parentEntity, userData); }
protected override void OnAttachTo(EntityLogic parentEntity, Transform parentTransform, object userData) { base.OnAttachTo(parentEntity, parentTransform, userData); m_OnAttachTo.Invoke(parentEntity, parentTransform, userData); }
protected override void OnDetached(EntityLogic childEntity, object userData) { base.OnDetached(childEntity, userData); m_OnDetached.Invoke(childEntity, userData); }
protected override void OnReveal() { base.OnReveal(); m_OnReveal?.Invoke(); }
protected override void OnRefocus(object userData) { base.OnRefocus(userData); m_OnRefocus?.Invoke(userData); }
protected override void OnAttached(UnityGameFramework.Runtime.EntityLogic childEntity, Transform parentTransform, object userData) { base.OnAttached(childEntity, parentTransform, userData); m_OnAttached.Invoke(childEntity, parentTransform, userData); }
protected override void OnOpen(object userData) { base.OnOpen(userData); m_OnOpen?.Invoke(userData); }
private void OnDestroy() { m_ShutDown?.Invoke(); }
protected override void OnDepthChanged(int uiGroupDepth, int depthInUIGroup) { base.OnDepthChanged(uiGroupDepth, depthInUIGroup); m_OnDepthChanged?.Invoke(uiGroupDepth, depthInUIGroup); }