Ejemplo n.º 1
0
 protected override void OnStart()
 {
     for (int i = 0; i < _loadingParts.Length; i++)
     {
         ((ISceneLoadingPart)_loadingParts[i]).PerformLoadPart();
     }
     _loadingComplete = true;
     OnLoadingComplete.Invoke();
 }
    private void Ready(int index)
    {
        if (index >= 0 && index < loadingReady.Count)
        {
            loadingReady[index] = true;
        }

        if (AllEssentialSystemsReady())
        {
            OnLoadingComplete?.Invoke();
            OnLoadingComplete = null;
        }
    }