public void OpenProfileSelection() { GameObject popup = Instantiate(Resources.Load("Gameplay/Popups/Popup Panel - Profile Selection") as GameObject, popupsHolder); UIProfileSelectionController psc = popup.GetComponent <UIProfileSelectionController>(); psc.NextScene = "MapScreen"; psc.popupsHolder = popupsHolder; gameObject.SetActive(false); }
void showConfirmaction() { GameObject popup; if (profileSelectionGO != null) { popup = Instantiate(profileSelectionGO, popupsHolder); } else { popup = Instantiate(Resources.Load("Gameplay/Popups/Popup Panel - Profile Selection") as GameObject, popupsHolder); } UIProfileSelectionController psc = popup.GetComponent <UIProfileSelectionController>(); psc.NextScene = nextScene; psc.skipConfirmationPopup = true; psc.popupsHolder = popupsHolder; }
//bool isFirstUse = true; void Awake() { Instance = this; }