private IEnumerator Initialization() { #if UNITY_ANDROID //checking needed permissions if (!Android.HasCameraPermission) { yield return(Android.GetCameraAccess()); } //do not start proccess without camera permission yield return(new WaitWhile(() => !Android.HasCameraPermission)); //if (!Android.HasLocationPermission) //{ // yield return Android.GetLoactionAccess(); //} //yield return new WaitWhile(() => !Android.HasLocationPermission); #endif onInitEnd?.Invoke(); }