///Get a Variable of name and optionaly type public Variable GetVariable(string name, Type ofType = null) { Variable variable = _blackboard.GetVariable(name, ofType); if (variable == null && Parent != null) { variable = Parent.GetVariable(name, ofType); } return(variable); }
void BBMethodsSpoof() { var bb = new BlackboardSource(); bb.GetVariable <System.Boolean>(""); bb.GetValue <System.Boolean>(""); bb.GetVariable <System.Single>(""); bb.GetValue <System.Single>(""); bb.GetVariable <System.Int32>(""); bb.GetValue <System.Int32>(""); bb.GetVariable <UnityEngine.Vector2>(""); bb.GetValue <UnityEngine.Vector2>(""); bb.GetVariable <UnityEngine.Vector3>(""); bb.GetValue <UnityEngine.Vector3>(""); bb.GetVariable <UnityEngine.Vector4>(""); bb.GetValue <UnityEngine.Vector4>(""); bb.GetVariable <UnityEngine.Quaternion>(""); bb.GetValue <UnityEngine.Quaternion>(""); bb.GetVariable <UnityEngine.Keyframe>(""); bb.GetValue <UnityEngine.Keyframe>(""); bb.GetVariable <UnityEngine.Bounds>(""); bb.GetValue <UnityEngine.Bounds>(""); bb.GetVariable <UnityEngine.Color>(""); bb.GetValue <UnityEngine.Color>(""); bb.GetVariable <UnityEngine.Rect>(""); bb.GetValue <UnityEngine.Rect>(""); }
///Get a Variable of name and optionaly type public Variable GetVariable(string name, Type ofType = null) { return(_blackboard.GetVariable(name, ofType)); }