protected internal override void OnShow(object userData) { base.OnShow(userData); m_Data = (HotfixEntityData)userData; m_OnShow.Invoke(m_Data.UserData); }
public override void Shutdown() { base.Shutdown(); m_ShutDown?.Invoke(); m_LoadAssetCallbacks = null; m_DLLLoaded = false; m_PDBLoaded = false; m_Update = null; m_ShutDown = null; AppDomain = null; assBytes = null; pdbBytes = null; dllStream = null; pdbStream = null; }
/// <summary> /// 界面深度改变 /// </summary> /// <param name="uiGroupDepth">界面组深度</param> /// <param name="depthInUIGroup">界面在界面组中的深度</param> protected internal override void OnDepthChanged(int uiGroupDepth, int depthInUIGroup) { base.OnDepthChanged(uiGroupDepth, depthInUIGroup); m_OnDepthChanged?.Invoke(uiGroupDepth, depthInUIGroup); }
/// <summary> /// 界面轮询 /// </summary> /// <param name="deltaTime">逻辑流逝时间,以秒为单位</param> /// <param name="unscaledDeltaTime">真实流逝时间,以秒为单位</param> protected internal override void OnUpdate(float deltaTime, float unscaledDeltaTime) { base.OnUpdate(deltaTime, unscaledDeltaTime); m_OnUpdate?.Invoke(deltaTime, unscaledDeltaTime); }
/// <summary> /// 界面激活 /// </summary> /// <param name="userData">用户自定义数据</param> protected internal override void OnRefocus(object userData) { base.OnRefocus(userData); m_OnRefocus?.Invoke(userData); }
/// <summary> /// 界面遮挡恢复 /// </summary> protected internal override void OnReveal() { base.OnReveal(); m_OnReveal?.Invoke(); }
/// <summary> /// 界面遮挡 /// </summary> protected internal override void OnCover() { base.OnCover(); m_OnCover?.Invoke(); }
/// <summary> /// 界面暂停恢复 /// </summary> protected internal override void OnResume() { base.OnResume(); m_OnResume?.Invoke(); }
/// <summary> /// 界面暂停 /// </summary> protected internal override void OnPause() { base.OnPause(); m_OnPause?.Invoke(); }
/// <summary> /// 界面关闭 /// </summary> /// <param name="userData"></param> protected internal override void OnClose(object userData) { base.OnClose(userData); m_OnClose?.Invoke(userData); }
/// <summary> /// 界面打开 /// </summary> /// <param name="userData"></param> protected internal override void OnOpen(object userData) { base.OnOpen(userData); m_OnOpen?.Invoke(userData); }
public override void OnUpdate(float deltaTime, float unscaledDeltaTime) { base.OnUpdate(deltaTime, unscaledDeltaTime); m_Update?.Invoke(deltaTime, unscaledDeltaTime); }
protected internal override void OnDetachFrom(EntityBase parentEntity, object userData) { base.OnDetachFrom(parentEntity, userData); m_OnDetachFrom.Invoke(parentEntity, userData); }
protected internal override void OnAttachTo(EntityBase parentEntity, Transform parentTransform, object userData) { base.OnAttachTo(parentEntity, parentTransform, userData); m_OnAttachTo.Invoke(parentEntity, parentTransform, userData); }
protected internal override void OnDetached(EntityBase childEntity, object userData) { base.OnDetached(childEntity, userData); m_OnDetached.Invoke(childEntity, userData); }
protected internal override void OnAttached(EntityBase childEntity, Transform parentTransform, object userData) { base.OnAttached(childEntity, parentTransform, userData); m_OnAttached.Invoke(childEntity, parentTransform, userData); }