| | 1 | | using DCL.Rendering; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | namespace DCL |
| | 5 | | { |
| | 6 | | public static class PlatformContextFactory |
| | 7 | | { |
| | 8 | | public static PlatformContext CreateDefault() |
| | 9 | | { |
| 666 | 10 | | if (InitialSceneReferences.i != null) |
| 666 | 11 | | return CreateDefault(InitialSceneReferences.i.bridgeGameObject); |
| | 12 | |
|
| 0 | 13 | | return CreateDefault(null); |
| | 14 | | } |
| | 15 | |
|
| | 16 | | public static PlatformContext CreateDefault(GameObject bridgesGameObject) |
| | 17 | | { |
| 666 | 18 | | return new PlatformContext( |
| | 19 | | memoryManager: new MemoryManager(), |
| | 20 | | cullingController: CullingController.Create(), |
| | 21 | | clipboard: Clipboard.Create(), |
| | 22 | | physicsSyncController: new PhysicsSyncController(), |
| | 23 | | parcelScenesCleaner: new ParcelScenesCleaner(), |
| | 24 | | webRequest: WebRequestController.Create(), |
| | 25 | | serviceProviders: new ServiceProviders(), |
| | 26 | | idleChecker: new IdleChecker(), |
| | 27 | | avatarsLODController: new AvatarsLODController(), |
| | 28 | | featureFlagController: new FeatureFlagController(bridgesGameObject)); |
| | 29 | | } |
| | 30 | | } |
| | 31 | | } |