public void OnApplicationStart() { if (_init) { return; } _init = true; SettingsUI.OnLoad(); ModMenuUI.OnLoad(); }
public void Awake() { if (Instance == null) { Instance = this; SceneManager.activeSceneChanged += SceneManagerOnActiveSceneChanged; DontDestroyOnLoad(gameObject); } else { Destroy(this); } }