Example #1
0
    public void ShowSettingsPopup(Action onConfirm)
    {
        GameObject popupGameObject = Instantiate(Resources.Load("Popups/SettingsPopup", typeof(GameObject))) as GameObject;
        BasePopup  popup           = popupGameObject.GetComponent <BasePopup>();

        popup.Initialize(onConfirm);
        ShowPopup(popup);
    }