|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(DelayAfterLoad >= 0.0f) |
|
|
|
{ |
|
|
|
SetProgressBar(1.0f, true); |
|
|
|
} |
|
|
|
|
|
|
|
if (onLoadComplete != null) |
|
|
|
Callable.Call(onLoadComplete); |
|
|
|
|
|
|
// Activate scenes
|
|
|
|
foreach (var a in asyncOperations) |
|
|
|
a.allowSceneActivation = true; |
|
|
|
|
|
|
|
foreach (var a in asyncOperations) |
|
|
|
Debug.Log("allowSceneActivation: " + a.allowSceneActivation); |
|
|
|
UpdatePercentage(); |
|
|
|
yield return new WaitForEndOfFrame(); |
|
|
|
} |
|
|
|