private void Awake() { menuManager = GetComponentInParent <MenuManager>(); optionMover = GetComponentInChildren <OptionMover>(); }
void Awake() { if(_instance == null) { _instance = this; DontDestroyOnLoad(this.gameObject); _currentState = MenuState.Title; _previousState = MenuState.Title; _menuElements = GameObject.FindObjectsOfType<MenuElement>(); } else if(_instance != this) Destroy(this.gameObject); }
public void Back() { SaveManager.SaveAudio(_sfx.value, _music.value); this.Deactivate(); MenuManager.StateTransition(MenuManager.MenuState.NoStateOverride, MenuManager.MenuState.Settings); }