[Bug] Fix issue with singleton providers when reloading levels

This commit is contained in:
Michal Pikulski
2025-09-03 19:07:27 +02:00
parent 5a996046cb
commit 97c5edf619
2 changed files with 0 additions and 10 deletions

View File

@@ -33,11 +33,6 @@ public class InputManager : MonoBehaviour
void Awake()
{
if (_instance != null && _instance != this)
{
Destroy(gameObject);
return;
}
_instance = this;
DontDestroyOnLoad(gameObject);
playerInput = GetComponent<PlayerInput>();

View File

@@ -33,11 +33,6 @@ public class PuzzleManager : MonoBehaviour
void Awake()
{
if (_instance != null && _instance != this)
{
Destroy(gameObject);
return;
}
_instance = this;
DontDestroyOnLoad(gameObject);
}