// -- 튜토리얼 계산 --------------------------------------------------------------// private void ProcessTutorial() { JSONObject cur = m_tutorialObject.GetField("tutorial")[m_curTutorialIndex]; if (cur != null) { string interaction = GetCurTutorialStr(cur, "show_interaction"); float showTime = GetCurTutorialTime(cur, "show_time"); // 튜토리얼이 완수되었는지 체크 for (int i = 0; i < m_tutorialList.Count; i++) { TUTO t = m_tutorialList.Dequeue(); TUTORIAL_ACTION act = t.action; string value = t.value; int prev = m_curTutorialIndex; switch (act) { case TUTORIAL_ACTION.SHOW_TIME_END: m_curTutorialIndex++; break; case TUTORIAL_ACTION.Object_Interaction: if (interaction.Equals(value)) { m_curTutorialIndex++; } break; case TUTORIAL_ACTION.Kill_Monster: m_kill += 1; if (m_kill >= GetCurTutorialCount(cur, "kill_monster")) { m_curTutorialIndex++; } break; case TUTORIAL_ACTION.Charge: case TUTORIAL_ACTION.Fix: case TUTORIAL_ACTION.Heal: m_curTutorialIndex++; break; } if (prev != m_curTutorialIndex) { m_tutorialList.Clear(); break; } } } ShowTutorial(); }
public TUTO(TUTORIAL_ACTION act, string va) { action = act; value = va; }