Exemple #1
0
		/**
		 * onPauseイベント
		 */
		public void OnPauseEvent()
		{
#if (!NDEBUG && DEBUG && ENABLE_LOG)
			Console.WriteLine($"{TAG}OnPauseEvent:");
#endif
			LifecycleEvent?.Invoke(false);
		}
Exemple #2
0
 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));
     }
 }
Exemple #3
0
 private void OnFrameStoppedLoading(BasicFrameResponse e)
 {
     if (Frames.TryGetValue(e.FrameId, out var frame))
     {
         frame.OnLoadingStopped();
         LifecycleEvent?.Invoke(this, new FrameEventArgs(frame));
     }
 }
Exemple #4
0
        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));
            }
        }
Exemple #5
0
		/**
		 * onPauseイベント
		 */
		public void OnPauseEvent()
		{
            Debug.Log(TAG + "OnPauseEvent:");
            LifecycleEvent?.Invoke(false);
		}
Exemple #6
0
		/**
		 * onResumeイベント
		 */
		public void OnResumeEvent()
		{
            Debug.Log(TAG + "OnResumeEvent:");
            LifecycleEvent?.Invoke(true);
		}