Esempio n. 1
0
 public static void CaptureScreen()
 {
     if (Inst == null)
     {
         var mainCam = SceneDataUtilities.MainCam;
         if (mainCam == null)
         {
             return;
         }
         Inst = mainCam.gameObject.GetComponent <ScreenCapturer>();
         if (Inst == null)
         {
             Inst = mainCam.gameObject.AddComponent <ScreenCapturer>();
         }
     }
     Inst.DoCapture(null);
 }