mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 12:58:27 +00:00
fix for Loader state management
This commit is contained in:
parent
ea5fbb001b
commit
1a9efae6b8
1 changed files with 3 additions and 3 deletions
|
@ -149,6 +149,9 @@ namespace SanAndreasUnity.Behaviours
|
|||
if (IsLoading)
|
||||
return;
|
||||
|
||||
CleanupState();
|
||||
IsLoading = true;
|
||||
|
||||
AddLoadingSteps();
|
||||
|
||||
s_coroutine = CoroutineManager.Start(LoadCoroutine(), OnLoadCoroutineFinishedOk, OnLoadCoroutineFinishedWithError);
|
||||
|
@ -202,9 +205,6 @@ namespace SanAndreasUnity.Behaviours
|
|||
private static IEnumerator LoadCoroutine ()
|
||||
{
|
||||
|
||||
CleanupState();
|
||||
IsLoading = true;
|
||||
|
||||
var stopwatch = System.Diagnostics.Stopwatch.StartNew ();
|
||||
|
||||
Debug.Log("Started loading GTA");
|
||||
|
|
Loading…
Add table
Reference in a new issue