Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
    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();
                }
            }
        }
    }