Esempio n. 1
0
 public void MakeScreenshot()
 {
     if (!ScreenshotIsMade)
     {
         if (ScreenNum < _amountOfDividing - 1)
         {
             ScreenShotCamera.targetTexture = RenderTexture.GetTemporary((int)(WidthOfGameScreen * 100), (int)(HeightOfGameScreen * 100), 24);
             _needToTakeScreenshot          = true;
         }
         else
         {
             if (NeedToMakeQuestScreenshot)
             {
                 Invoke("MakeQuestScreenshot", 0.5f);
             }
             TakeCompletedSceenshot();
             _gameController.SaveLvl();
             ScreenshotIsMade = true;
             _needToScan      = false;
             _gameController.ActivateWinUi(DelayTimeBeforeUI);
         }
     }
 }