From ca1e3e8488312feabd8f0aac565bbd208ffd674d Mon Sep 17 00:00:00 2001 From: Sebastian Bularca Date: Thu, 18 Jun 2026 23:59:35 +0200 Subject: [PATCH] A bit of cleaning --- Assets/Code/Core/EntryPoint.cs | 15 +++++++-------- Assets/Code/Platform/DesktopPlatform.cs | 1 - 2 files changed, 7 insertions(+), 9 deletions(-) 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;