public void OnStop()
 {
     if (Stopped != null)
     {
         Stopped(Activity);
     }
     AccelerometerListener.StopListening();
 }
 public void OnDestroy()
 {
     if (Destroying != null)
     {
         Destroying(Activity);
     }
     AccelerometerListener.StopListening();
     Activity = null;
 }
Beispiel #3
0
 public void OnDestroy()
 {
     if (Destroying != null)
     {
         Destroying(Activity);
     }
     AccelerometerListener.StopListening();
     Application.SupportedDeviceOrientationsChanged -= RestrictSupportedOrientationsWith;
     Activity = null;
 }
Beispiel #4
0
 public void OnPause()
 {
     AudioSystem.Active = false;
     GameView.ClearFocus();
     if (Paused != null)
     {
         Paused(Activity);
     }
     AccelerometerListener.StopListening();
 }