public void OnSleep() { Debug.LogToFileMethod(); if (pageRun != null) { pageRun.OnSleep(); } if (pageConfig != null) { pageConfig.OnSleep(); } if (pageProfile != null) { pageProfile.OnSleep(); } if (pageResults != null) { pageResults.OnSleep(); } if (pageHelp != null) { pageHelp.OnSleep(); } if (pageDebugRunAdjust != null) { pageDebugRunAdjust.OnSleep(); } if (pageDebugPurchase != null) { pageDebugPurchase.OnSleep(); } if (pageSetup != null) { pageSetup.OnSleep(); } if (Config.Debug.PageSensorEnabled) { if (pageDebugGps != null) { pageDebugGps.OnSleep(); } if (pageDebugAccelerometer != null) { pageDebugAccelerometer.OnSleep(); } } if (Config.Purchase.ConsumeOnExitEnabled) { AppStore.Instance.Consume(); } gpsProvider.DeInit(); accelerometerProvider.DeInit(); soundProvider.DeInit(); }