/** * onPauseイベント */ public void OnPauseEvent() { #if (!NDEBUG && DEBUG && ENABLE_LOG) Console.WriteLine($"{TAG}OnPauseEvent:"); #endif LifecycleEvent?.Invoke(false); }
private void OnLifeCycleEvent(LifecycleEventResponse e) { if (Frames.TryGetValue(e.FrameId, out var frame)) { frame.OnLifecycleEvent(e.LoaderId, e.Name); LifecycleEvent?.Invoke(this, new FrameEventArgs(frame)); } }
private void OnFrameStoppedLoading(BasicFrameResponse e) { if (Frames.TryGetValue(e.FrameId, out var frame)) { frame.OnLoadingStopped(); LifecycleEvent?.Invoke(this, new FrameEventArgs(frame)); } }
private void OnLifeCycleEvent(MessageEventArgs e) { if (Frames.ContainsKey(e.MessageData.frameId.ToString())) { Frame frame = Frames[e.MessageData.frameId.ToString()]; frame.OnLifecycleEvent(e.MessageData.loaderId.ToString(), e.MessageData.name.ToString()); LifecycleEvent?.Invoke(this, new FrameEventArgs(frame)); } }
/** * onPauseイベント */ public void OnPauseEvent() { Debug.Log(TAG + "OnPauseEvent:"); LifecycleEvent?.Invoke(false); }
/** * onResumeイベント */ public void OnResumeEvent() { Debug.Log(TAG + "OnResumeEvent:"); LifecycleEvent?.Invoke(true); }