using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Panel : AbstractPanel { public string Header { get; set; } public string Content { get; set; } public GameObject PanelInstance { get; set; } public Panel() { } public Panel(Vector3 _position, Vector2 _size, Vector3 _scale) : base (_position, _size, _scale){ } public override GameObject BuildPanel() { GameObject panelPrefab = PanelComponentFactory.BuildCustomPanelWithContinue(Position, Size, Scale); panelPrefab.transform.Find("Header").gameObject.GetComponent().text = Header; panelPrefab.transform.Find("Content").gameObject.GetComponent().text = Content; return panelPrefab; } public GameObject BuildPanelWithoutContinue() { GameObject panelPrefab = PanelComponentFactory.BuildCustomPanel(Position, Size, Scale); panelPrefab.transform.Find("Header").gameObject.GetComponent().text = Header; panelPrefab.transform.Find("Content").gameObject.GetComponent().text = Content; return panelPrefab; } public void SetContinueButtonAction(Func onClickFunction, DialogueController dialogControllerModel) { PanelInstance.transform.Find("ContinueButton").GetComponent