Пример #1
0
        // Saving StatCheckNode
        private StatCheckNodeData SaveNodeData(StatCheckNode node)
        {
            StatCheckNodeData nodeData = new StatCheckNodeData()
            {
                NodeGuid       = node.NodeGuid,
                Position       = node.GetPosition().position,
                StatCheckType  = node.CheckType,
                StatCheckValue = int.Parse(node.StatCheckValue)
            };

            return(nodeData);
        }
Пример #2
0
        private void RunNode(StatCheckNodeData nodeData) // Running stat check node
        {
            statCheckNodeDatas.Add(nodeData);            // Adding stat check node to its list

            CheckNodeType(GetNextNode(nodeData));        // Checking and getting the next node based on this node
        }