mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 12:03:04 +00:00
...
This commit is contained in:
parent
e4b788b6ca
commit
6b472e1374
1 changed files with 11 additions and 8 deletions
|
@ -110,15 +110,18 @@ namespace SanAndreasUnity.Behaviours
|
|||
}
|
||||
|
||||
|
||||
if (Cell.Instance != null) {
|
||||
// add steps for cell
|
||||
AddLoadingStep( new LoadingStep( () => Cell.Instance.CreateStaticGeometry (), "Creating static geometry", 5.8f ) );
|
||||
AddLoadingStep( new LoadingStep( () => Cell.Instance.InitStaticGeometry (), "Init static geometry", 0.35f ) );
|
||||
AddLoadingStep( new LoadingStep( () => Cell.Instance.LoadParkedVehicles (), "Loading parked vehicles", 0.2f ) );
|
||||
AddLoadingStep( new LoadingStep( () => Cell.Instance.CreateEnexes (), "Creating enexes", 0.1f ) );
|
||||
AddLoadingStep( new LoadingStep( () => Cell.Instance.LoadWater (), "Loading water", 0.08f ) );
|
||||
AddLoadingStep( new LoadingStep( () => Cell.Instance.FinalizeLoad (), "Finalize world loading", 0.01f ) );
|
||||
var worldSteps = new LoadingStep[]
|
||||
{
|
||||
new LoadingStep( () => Cell.Instance.CreateStaticGeometry (), "Creating static geometry", 5.8f ),
|
||||
new LoadingStep( () => Cell.Instance.InitStaticGeometry (), "Init static geometry", 0.35f ),
|
||||
new LoadingStep( () => Cell.Instance.LoadParkedVehicles (), "Loading parked vehicles", 0.2f ),
|
||||
new LoadingStep( () => Cell.Instance.CreateEnexes (), "Creating enexes", 0.1f ),
|
||||
new LoadingStep( () => Cell.Instance.LoadWater (), "Loading water", 0.08f ),
|
||||
new LoadingStep( () => Cell.Instance.FinalizeLoad (), "Finalize world loading", 0.01f ),
|
||||
};
|
||||
|
||||
if (Cell.Instance != null) {
|
||||
worldSteps.ForEach(AddLoadingStep);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue