Firstborn/Assets/RPG Creation Kit/Scripts/BehaviourTrees/Variables/BTReference.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

21 lines
547 B
C#

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;
}
}
}