public DialogOption(string _text, DialogStateKey _next) { text = _text; triggerExit = false; success = _next; failure = _next; statCheck = IgnoreStatCheck; }
public void SetState(DialogStateKey key) { m_CurrentState = key; Debug.Assert(m_States.ContainsKey(key)); DialogState state = m_States[key]; if (state.recordGenerator != null) { m_Records.Add(state.recordGenerator()); DumpRecords(); } if (state.onStateEntry != null) { state.onStateEntry(this); } m_Reply.text = state.reply; UpdateDialogOptions(); }