Beispiel #1
0
    private void UpdatePatchLoadingMessage()
    {
        int currentRequests = requestedPatches.Count;

        maxRequests = Mathf.Max(maxRequests, currentRequests);
        int finished = maxRequests - currentRequests;

        loadingComponent.SetProgress((float)finished / maxRequests);

#if UNITY_EDITOR
        loadingComponent.SetLabel("          Loading ...  (" + finished + " / " + maxRequests + ")");
#endif
    }
Beispiel #2
0
    private void UpdatePatchLoadingMessage()
    {
        int currentRequests = requestedPatches.Count;

        maxRequests = Mathf.Max(maxRequests, currentRequests);
        int finished = maxRequests - currentRequests;

        loadingComponent.SetProgress((float)finished / maxRequests);

#if UNITY_EDITOR
        // This is only for debuging purposes. Non-editor builds will only see "Loading ..."
        loadingComponent.SetLabel(Translator.Get("Loading") + " ...  (" + finished + " / " + maxRequests + ")");
#endif
    }