// Use this for initialization void Start() { if (canvas != null) { canvasRect = canvas.GetComponent <RectTransform>(); } if (ARCamera != null) { _ARCamera = ARCamera; } if (MainCamera != null) { _MainCamera = MainCamera; } if (PagesManager != null) { _PagesManager = PagesManager; } if (LoadingIndicator != null) { _LoadingIndicator = LoadingIndicator; } screenShotPath = Application.persistentDataPath; Debug.Log(screenShotPath); }
public override void OnBackKeyPress(CancellationEventArgs e) { e.CancelEvent = true; if (firstBackKeyPress.AddSeconds(2) > DateTime.Now) { Application.Quit(); } else { firstBackKeyPress = DateTime.Now; PagesManager.DisplayToast("Press Back again to exit"); } }
public void CaptureScreenShot() { Application.CaptureScreenshot(FileManager.GetScreenShotFileName()); PagesManager.DisplayToast("Screenshot captured"); }