- Home /
 
 
               Question by 
               lasantos · Sep 08, 2016 at 03:05 AM · 
                iosnot workingwaitforsecondsienumerator  
              
 
              WaitForSeconds not working in iOS only
Hi!
I have one Splash screen that is not working in iOS
When i run it in the Editor, or an Android device, all goes well. But on iphone, it just go trough and the screen dont show.
Here is the code, and the log in the XCode.
is anything wrong? Thx
Code:
 public class delaySplashScreen : MonoBehaviour {
 
     public float delayTime;
 
     // Use this for initialization
     void Start () {
         StartCoroutine (delay ());
     }
     
     // Update is called once per frame
     void Update () {
     
     }
 
     IEnumerator delay(){
         Debug.Log ("Starting delay: " + delayTime);
         yield return new WaitForSeconds (delayTime);
         Debug.Log ("End Delay, loading menu...");
         SceneManager.LoadScene ("mainMenu");
     }
 }
 
               Log:
 Starting delay: 2
 <delay>c__Iterator6:MoveNext()
 UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
  
 (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
 
 2016-09-07 20:23:59.126 Kamikon[911:259660] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9814)
 End Delay, loading menu...
 
              
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
Corountines and messaging system 0 Answers
c# waitforsecconds 2 Answers
How to disable and re-enable components in the same function? 2 Answers