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