private void InitializeMenu() { CurrentMainMenu = this; SetCurrentPanel(); DontDestroyOnLoad(GameObject.Find("GlobalUI").gameObject); ModsManager.Initialize(); Options.ReadOptions(); Options.UpdateVolume(); ExtraOptionsManager.Initialize(); SetBackground(); UpdateVersionInfo(); ClearBatchAiSquadsTestingMode(); PrepareUpdateChecker(); new ObstaclesManager(); }
public void OnClickModActivationChange(GameObject ExtraOptionGO) { bool toggleValue = ExtraOptionGO.transform.Find("Toggle").GetComponent <Toggle>().isOn; ExtraOptionsManager.ExtraOptionToggleIsActive(ExtraOptionGO.name, toggleValue); }