コード例 #1
0
 // 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);
 }
コード例 #2
0
 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");
     }
 }
コード例 #3
0
 public void CaptureScreenShot()
 {
     Application.CaptureScreenshot(FileManager.GetScreenShotFileName());
     PagesManager.DisplayToast("Screenshot captured");
 }