21 lines
547 B
C#
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;
|
||
|
}
|
||
|
}
|
||
|
}
|