Reworked camera handling and localization a bit

This commit is contained in:
Finnchen123
2025-06-07 10:15:59 +02:00
parent 8f561f7f42
commit cb033ea487
12 changed files with 101 additions and 210 deletions

View File

@@ -14,7 +14,7 @@ namespace Assets.Scripts
{
SceneManager.sceneLoaded += OnSceneLoaded;
bool hasSceneHandler = false;
foreach (Object o in FindObjectsOfType(typeof(MonoBehaviour)))
foreach (Object o in FindObjectsByType<MonoBehaviour>(FindObjectsSortMode.None))
{
if (o.name == "SceneHandlerLoaded")
{