public void TryAgainClick() { GameObject popup = Instantiate(Resources.Load("Gameplay/Popups/Popup Panel - Confirmation") as GameObject, popupsHolder); UIConfirmationPopup psc = popup.GetComponent <UIConfirmationPopup>(); psc.onConfirm = TryAgain; }
void showConfirmaction() { //UIController.Instance.ConfirmationPopup.onConfirm = ChangeProfile; //UIController.Instance.ShowPopup (UIController.Instance.ConfirmationPopup.gameObject); GameObject popup = Instantiate(Resources.Load("Gameplay/Popups/Popup Panel - Confirmation") as GameObject, popupsHolder); UIConfirmationPopup psc = popup.GetComponent <UIConfirmationPopup>(); psc.onConfirm = ChangeProfile; }
protected override bool AquireUIFromScene() { m_uiPopup = GameObject.FindObjectOfType <UIConfirmationPopup>(); m_ui = m_uiPopup; return(m_ui != null); }