/// <summary> /// Displays the settings modal to tweak game options in-game. /// </summary> public void ShowSettingsMenu() { if (settingsModal == null) { //For consistency, we instantiate a copy of the main menu's settings prefab instead of having one ready-made in the scene. settingsModal = ((GameObject)Instantiate(m_SettingsMenuPrefab)).GetComponent <SettingsModal>(); settingsModal.transform.SetParent(transform.parent, false); settingsModal.transform.localScale = Vector3.one; } settingsModal.Show(); }
public void OnShowSettingsModal() { m_SettingsModal.Show(); }