/// <summary> /// Link two dialog sets /// </summary> private void LinkDialogSet() { if (m_outSelectedCondition != null) { if (m_outConditionValue) { m_outSelectedCondition.LinkedTokenTrue = m_inSelectedNode.NodeToken; } else { m_outSelectedCondition.LinkedTokenFalse = m_inSelectedNode.NodeToken; } } else if (m_outSelectedLine != null) { m_outSelectedLine.LinkedToken = m_inSelectedNode.NodeToken; } else if (m_outSelectedStart != null) { m_outSelectedStart.LinkedToken = m_inSelectedNode.NodeToken; } m_inSelectedNode = null; m_outSelectedLine = null; m_outSelectedCondition = null; m_outSelectedStart = null; }
/// <summary> /// Select the out point of a dialog set /// </summary> /// <param name="_line">Content linked to the out point selected</param> private void SelectOutLine(DialogueLine _line) { if (m_outSelectedCondition != null) { m_outSelectedCondition = null; } if (m_outSelectedStart != null) { m_outSelectedStart = null; } m_outSelectedLine = _line; if (m_inSelectedNode != null && m_outSelectedLine != null) { LinkDialogSet(); } }
/// <summary> /// Select the out point of a condition /// </summary> /// <param name="_condition">Content linked to the out point selected</param> private void SelectOutCondition(DialogueCondition _condition, bool _valueCondition) { if (m_outSelectedLine != null) { m_outSelectedLine = null; } if (m_outSelectedStart != null) { m_outSelectedStart = null; } m_outSelectedCondition = _condition; m_outConditionValue = _valueCondition; if (m_inSelectedNode != null && m_outSelectedCondition != null) { LinkDialogSet(); } }
private void SelectOutStarter(StarterPair _startingPair) { if (m_outSelectedCondition != null) { m_outSelectedCondition = null; } if (m_outSelectedLine != null) { m_outSelectedLine = null; } m_outSelectedStart = _startingPair; if (m_inSelectedNode != null && m_outSelectedStart != null) { LinkDialogSet(); } }