using System.Collections; using System.Collections.Generic; using UnityEngine; using System; public class PanelTest : MonoBehaviour { [SerializeField] bool Custom = true; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } private void CustomPanel() { Debug.Log("Accept press"); } private void QuestionPanel() { Debug.Log("Reject press"); } private void EndDialogue() { Debug.Log("End dialogue :D"); } } public class NPCDialogue2 : MonoBehaviour { /* List DialogueStepsList; public void Start() { DialogueController DialogueStep = new DialogueController(); DialogueStep.AddSentence(new DialogueModel("lorem ipsum")); *//* DialogueStep.AddSentence(new QuestionDialogueModel("tolore dolore?", new List> { new Tuple("AcceptButton", CustomPanel), new Tuple("RejectButton", QuestionPanel) }));*//* DialogueStep.SetActionAfterDialogueEnds(() => { }); DialogueStepModel dialogueStepModel = new DialogueStepModel(DialogueStep); DialogueStepsList = new List { dialogueStepModel }; } public void ShowStep() { DialogueStepsList[0].DialogueController.Show(DialogueStepsList[0].DialogueController.listOfDialogue.Dequeue()); }*/ }