public bool isEqual(ActionEdge other) { return (StartAction.EventName == other.StartAction.EventName && EndAction.EventName == other.EndAction.EventName) || (EndAction.EventName == other.StartAction.EventName && StartAction.EventName == other.EndAction.EventName); }
public void ActionEventNotify(ActionEdge notifiedEdge) { if (!gameStart) return; if (TaskList.Count <= m_currentTask) return; ActionEdge currentEdge = TaskList[m_currentTask].GetCurrentStep().GetEdge(); if (currentEdge.isEqual(notifiedEdge)) { TaskList[m_currentTask].ProceedTask(); if (TaskList[m_currentTask].TaskComplete()) { m_currentTask++; if (DayTracker.currentDay < m_currentTask) { ShowDayScene(); } } } }