private StartNodeData SaveNodeData(StartNode _node) { StartNodeData nodeData = new StartNodeData() { NodeGuid = _node.NodeGuid, Position = _node.GetPosition().position, }; return(nodeData); }
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); }
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."); } }
private void RunNode(StartNodeData _nodeData) { CheckNodeType(GetNextNode(dialogueContainer.StartNodeData[0])); }
private void RunNode(StartNodeData nodeData) // Running start node { CheckNodeType(GetNextNode(currentDialogue.StartNodeDatas[0])); }