fixed: menu navigation, singleton bugs
quit buttons in pause menus are fixed. also the persistent data objects were not deleting themselves if another copy exists, so that's been fixed
This commit is contained in:
@@ -6,10 +6,18 @@ using TMPro;
|
||||
|
||||
public class DebugSceneSwitcher : MonoBehaviour
|
||||
{
|
||||
public static DebugSceneSwitcher Instance = null;
|
||||
|
||||
public bool showDropdown;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
if (Instance == null) {
|
||||
Instance = this;
|
||||
} else {
|
||||
Destroy(this.gameObject);
|
||||
return;
|
||||
}
|
||||
// Keep the object around when we switch scenes
|
||||
DontDestroyOnLoad(this.gameObject);
|
||||
CreateDropdownOptions();
|
||||
|
||||
Reference in New Issue
Block a user