protected override void DisposeInternal() { base.DisposeInternal(); if (Instance == this) { Instance = null; } }
private void Awake() { instancesInScene++; if (Init(Instance)) { Instance = this; } SceneManager.sceneLoaded += OnLevelWasLoadedNew; }