Пример #1
0
 public void OnSuspend()
 {
     if (logging)
     {
         Debug.Log("[SensoManager] OnSuspend. Subscribe to OnSuspended event for alerts.");
     }
     OnSuspended?.Invoke();
 }
Пример #2
0
        public void Suspend()
        {
            timer.Reset();
            timer.Start();

            while (timer.ElapsedMilliseconds < waitDuration)
            {
                OnSuspended?.Invoke();
            }

            timer.Stop();
        }
Пример #3
0
 protected override void OnSleep()
 {
     App.DebugLog("1");
     OnSuspended?.Invoke();
     App.DebugLog("2");
 }