public void TakeScreenshot() { if (isTaken) { return; } isTaken = true; //shutterSound.Play(); AudioManager.PlayAudio(AudioType.Photo_Shutter); //hide notice bubble int repeatCondition = 0; if (!FinalCameraController.isTutorial) { FinalCameraController.Hide(Notice); } if (!AdsController.IsThisAdOk()) { repeatCondition = 2; } if (!AdsController.IsThisPoseOk() && !FinalCameraController.isTutorial) { repeatCondition = 1; } InstagramController.RepeatPostureOrBG(repeatCondition); TakeScreenshot(width, height); InstagramController.takenNum++; FinalCameraController.entryTime += 1; StartCoroutine(ExampleCoroutine()); //re-arrange children object, so the latest is displayed as the first //for (int i = 0; i < InstagramController.postList.Count; i++) //{ // InstagramController.postList[i].transform.SetSiblingIndex(i); //} //AdsController.UseAdAndPose(); }