private StartNodeData SaveNodeData(StartNode _node)
    {
        StartNodeData nodeData = new StartNodeData()
        {
            NodeGuid = _node.NodeGuid,
            Position = _node.GetPosition().position,
        };

        return(nodeData);
    }
예제 #2
0
    private StartNodeData SaveNodeData(StartNode _lvnode, LevelMapSO _levelFlowSO)
    {
        StartNode _node = (StartNode)_lvnode;

        StartNodeData _data = new StartNodeData
        {
            guid      = _node.NodeGuid,
            position  = _node.GetPosition().position,
            portSet   = _node.portSet,
            startName = _node.startName
                        //nextInPortGuid = _levelFlowSO.linkDatas.Find(x => x.outPortGuid == _node.).inPortGuid
        };

        return(_data);
    }
예제 #3
0
    public static async void LoadFromStart(string _startName)
    {
        Init();
        //Find Stat Node with this name:
        StartNodeData _data = flowData.startNodeDatas.Find(x => x.startName == _startName);

        //StartNodeData _data = _flowData.startNodeDatas.Find(x => x.startName == _startName);
        if (_data != null)
        {
            LoadNextScene(_data.portSet.setGuid);
        }
        else
        {
            //Can't log the map
            Debug.LogError("Start node named " + _startName + " not found.");
        }
    }
예제 #4
0
 private void RunNode(StartNodeData _nodeData)
 {
     CheckNodeType(GetNextNode(dialogueContainer.StartNodeData[0]));
 }
예제 #5
0
 private void RunNode(StartNodeData nodeData)    // Running start node
 {
     CheckNodeType(GetNextNode(currentDialogue.StartNodeDatas[0]));
 }