mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-06 00:39:55 +00:00
rename
This commit is contained in:
parent
41fa1aaad2
commit
0c6f495718
@ -48,15 +48,15 @@ internal class MenuManager : MonoBehaviour, IAddComponentOnStart
|
|||||||
|
|
||||||
private bool _intentionalDisconnect;
|
private bool _intentionalDisconnect;
|
||||||
|
|
||||||
private GameObject _threeChoicePopupBase;
|
private GameObject _choicePopupPrefab;
|
||||||
|
|
||||||
public void Start()
|
public void Start()
|
||||||
{
|
{
|
||||||
Instance = this;
|
Instance = this;
|
||||||
|
|
||||||
_threeChoicePopupBase = Instantiate(Resources.FindObjectsOfTypeAll<PopupMenu>().First(x => x.name == "TwoButton-Popup" && x.transform.parent.name == "PopupCanvas" && x.transform.parent.parent.name == "TitleMenu").gameObject);
|
_choicePopupPrefab = Instantiate(Resources.FindObjectsOfTypeAll<PopupMenu>().First(x => x.name == "TwoButton-Popup" && x.transform.parent.name == "PopupCanvas" && x.transform.parent.parent.name == "TitleMenu").gameObject);
|
||||||
DontDestroyOnLoad(_threeChoicePopupBase);
|
DontDestroyOnLoad(_choicePopupPrefab);
|
||||||
_threeChoicePopupBase.SetActive(false);
|
_choicePopupPrefab.SetActive(false);
|
||||||
|
|
||||||
MakeTitleMenus();
|
MakeTitleMenus();
|
||||||
QSBSceneManager.OnSceneLoaded += OnSceneLoaded;
|
QSBSceneManager.OnSceneLoaded += OnSceneLoaded;
|
||||||
@ -176,7 +176,7 @@ internal class MenuManager : MonoBehaviour, IAddComponentOnStart
|
|||||||
|
|
||||||
public ThreeChoicePopupMenu CreateThreeChoicePopup(string message, string confirm1Text, string confirm2Text, string cancelText)
|
public ThreeChoicePopupMenu CreateThreeChoicePopup(string message, string confirm1Text, string confirm2Text, string cancelText)
|
||||||
{
|
{
|
||||||
var newPopup = Instantiate(_threeChoicePopupBase);
|
var newPopup = Instantiate(_choicePopupPrefab);
|
||||||
|
|
||||||
switch (LoadManager.GetCurrentScene())
|
switch (LoadManager.GetCurrentScene())
|
||||||
{
|
{
|
||||||
@ -228,7 +228,7 @@ internal class MenuManager : MonoBehaviour, IAddComponentOnStart
|
|||||||
|
|
||||||
public FourChoicePopupMenu CreateFourChoicePopup(string message, string confirm1Text, string confirm2Text, string confirm3Text, string cancelText)
|
public FourChoicePopupMenu CreateFourChoicePopup(string message, string confirm1Text, string confirm2Text, string confirm3Text, string cancelText)
|
||||||
{
|
{
|
||||||
var newPopup = Instantiate(_threeChoicePopupBase);
|
var newPopup = Instantiate(_choicePopupPrefab);
|
||||||
|
|
||||||
switch (LoadManager.GetCurrentScene())
|
switch (LoadManager.GetCurrentScene())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user