Advertisement
Guest User

Unity3d Start() with iPhone and Android

a guest
May 11th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.24 KB | None | 0 0
  1. #if UNITY_ANDROID
  2. IEnumerator Start()
  3. {
  4.     yield return new WaitForSeconds(4f);
  5.     Application.LoadLevel("Menu");
  6. }
  7. #endif
  8.  
  9. #if UNITY_IPHONE
  10. void Start()
  11. {
  12.     yield return new WaitForSeconds(4f);
  13.     Application.LoadLevel("Menu");
  14. }
  15. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement