private void Awake() { if (instance == null) { instance = this; } else { Destroy(gameObject); return; } }
private IEnumerator WaitForFile(string pathToPhoto) { //Debug.Log("agora_: WaitForFile"); yield return(null); Sprite photoSprite = SpriteLoader.GetSpriteFromFile(pathToPhoto); photoNames.Add(pathToPhoto); CheckingTextType checkingTextType = CheckingTextType.CarNumber; photo = photoSprite; if (string.IsNullOrEmpty(VideoCallPhotoManager.FolderName)) { PhotoChecking.OpenPhotoCheck(photoSprite, FolderName, checkingTextType, true); PhotoChecking.AddManualCloseEventListiner(RemoveLastPhoto); } else { StartCoroutine(PhotoMakeAnim()); SaveInFolder(); } }