using System; using System.Collections; using System.Collections.Generic; using MoleMole.Config; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; namespace MoleMole { public class InLevelPlotPageContext : BasePageContext { private MonoStoryScreen _storyScreen; private int _plotID; private List _dialogList; private int _dialogIndex = -1; private PlotMetaData _plotData; private Coroutine _currentChatCoroutine; private int _currentChatIndex; private DialogDataItem _currentDialogDataItem; public InLevelPlotPageContext(MonoStoryScreen storyScreen, int plotID, GameObject view = null) { config = new ContextPattern { contextName = "InLevelPlotPageContext", viewPrefabPath = "UI/Menus/Page/InLevel/InLevelPlotPage" }; base.view = view; _storyScreen = storyScreen; _plotID = plotID; _dialogList = new List(); } public override bool OnNotify(Notify ntf) { if (ntf.type == NotifyTypes.OnPlotFinished) { return OnPlotFinished(); } return false; } public override void StartUp(Transform canvasTrans, Transform viewParent = null) { base.StartUp(canvasTrans, viewParent); } public override void Destroy() { base.Destroy(); _dialogList.Clear(); _dialogIndex = -1; } protected override void BindViewCallbacks() { BindViewCallback(base.view.transform.Find("PlotDialog/Button").GetComponent