using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class selectCategoriesPanelController : MonoBehaviour { [SerializeField] Button OpenDialogButton; [SerializeField] GameObject SelectCategoriesDialog; [SerializeField] Text SelectCategoriesText; // Start is called before the first frame update void Start() { OpenDialogButton.onClick.AddListener(ShowDialog); } // Update is called once per frame void Update() { SelectCategoriesDialog.GetComponent().GetSelectedCategoriesQuestionCount(); } internal void ShowDialog() { SelectCategoriesDialog.SetActive(true); } }