Exemplo n.º 1
0
 void Update()
 {
     if (newLevel != null)
     {
         instance.GetComponent <GUITexture>().enabled = true;
         StartCoroutine(LoadCoroutine());
         doneLoadingScene = true;
         newLevel         = null;
     }
     if (syncLevel != null && doneLoadingScene && syncLevel.isDone)
     {
         doneLoadingScene = false;
         instance.GetComponent <GUITexture>().enabled = false;
     }
 }