private void RunNode(EventNodeData _nodeData) { if (_nodeData.DialogueEventSO != null) { _nodeData.DialogueEventSO.RunEvent(); } CheckNodeType(GetNextNode(_nodeData)); }
private EventNodeData SaveNodeData(EventNode _node) { EventNodeData nodeData = new EventNodeData() { NodeGuid = _node.NodeGuid, Position = _node.GetPosition().position, DialogueEventSO = _node.DialogueEvent, }; return(nodeData); }
private void RunNode(EventNodeData nodeData) // Running event node { nodeData.DialogueEventSO.RunEvent(); // Running event in node CheckNodeType(GetNextNode(nodeData)); // Checking and getting the next node based on this node }