Firstborn/Assets/RPG Creation Kit/Scripts/BehaviourTrees/Variables/BTReference.cs

21 lines
547 B
C#
Raw Permalink Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using RPGCreationKit.BehaviourTree.Data;
namespace RPGCreationKit.BehaviourTree.Data
{
public static class BTReference
{
public static BTVariable SolveReference(RPGCK_BT graph, string varName)
{
for(int i = 0; i < graph.graphVariables.Count; i++)
{
if (graph.graphVariables[i].name == varName)
return graph.graphVariables[i];
}
return null;
}
}
}