using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; using UnityEngine.UI; public class CourseTaskBackGroundPanel : PanelBasic { public Button prepare_start_button; public TextMeshProUGUI task_back_ground_text; protected override void Awake() { base.Awake(); } private void Start() { prepare_start_button.onClick.AddListener(OnPrepareStart); } public void Init(string _back_ground_text) { if (_back_ground_text != null) { task_back_ground_text.text = _back_ground_text; } } public void OnPrepareStart() { OnPopupEnd(); } }