コード例 #1
0
 private void RunNode(EventNodeData _nodeData)
 {
     if (_nodeData.DialogueEventSO != null)
     {
         _nodeData.DialogueEventSO.RunEvent();
     }
     CheckNodeType(GetNextNode(_nodeData));
 }
コード例 #2
0
    private EventNodeData SaveNodeData(EventNode _node)
    {
        EventNodeData nodeData = new EventNodeData()
        {
            NodeGuid        = _node.NodeGuid,
            Position        = _node.GetPosition().position,
            DialogueEventSO = _node.DialogueEvent,
        };

        return(nodeData);
    }
コード例 #3
0
        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
        }