diff --git a/Assets/Code/Core/EntryPoint.cs b/Assets/Code/Core/EntryPoint.cs index 1dd328b..623eef7 100644 --- a/Assets/Code/Core/EntryPoint.cs +++ b/Assets/Code/Core/EntryPoint.cs @@ -5,14 +5,10 @@ using Nox.Game.UI; using Nox.Platform; using Jovian.SaveSystem; using Jovian.InGameLogging; -using Unity.Profiling; using UnityEngine; using UnityEngine.AddressableAssets; namespace Nox.Core { - /// - /// The main boot class which is initializing the project, loads the platforms settings, initializes the platforms and creates the game states - /// public class EntryPoint : MonoBehaviour { private Dictionary applicationStates; private ISceneTransition sceneTransition; @@ -65,11 +61,14 @@ namespace Nox.Core { gameLogStore = new GameLogStore(500); var adventureData = new AdventureData(); - + applicationStates = new Dictionary(); - applicationStates.TryAdd(GameState.BootState, new SplashGameState(bootstrapReferences, gameDataState)); - applicationStates.TryAdd(GameState.MainMenu, new MainMenuGameState(gameDataState, menuGameStateData, bootstrapReferences, saveSystem, adventureData, gameLogStore)); - applicationStates.TryAdd(GameState.GameMode, new GameModeGameState(gameDataState, bootstrapReferences, selectedPlatform.PlatformSettings, saveSystem, sceneTransition, adventureData, gameLogStore)); + applicationStates.TryAdd(GameState.BootState, + new SplashGameState(bootstrapReferences, gameDataState)); + applicationStates.TryAdd(GameState.MainMenu, + new MainMenuGameState(gameDataState, menuGameStateData, bootstrapReferences, saveSystem, adventureData, gameLogStore)); + applicationStates.TryAdd(GameState.GameMode, + new GameModeGameState(gameDataState, bootstrapReferences, selectedPlatform.PlatformSettings, saveSystem, sceneTransition, adventureData, gameLogStore)); } } } diff --git a/Assets/Code/Platform/DesktopPlatform.cs b/Assets/Code/Platform/DesktopPlatform.cs index e594b80..393292d 100644 --- a/Assets/Code/Platform/DesktopPlatform.cs +++ b/Assets/Code/Platform/DesktopPlatform.cs @@ -1,5 +1,4 @@ using Nox.Input; -using System.Collections; using System.Threading.Tasks; using UnityEngine; using UnityEngine.AddressableAssets;