public override Variable GetRuntimeVariable() { return(LocalVariablesUtilities.Get( ((MBVariable)this.target).gameObject, this.spVariableName.stringValue, false )); }
public static Variable.DataType GetLocalType(GameObject target, string name, bool inChildren = false) { Variable variable = LocalVariablesUtilities.Get(target, name, inChildren); return(variable != null ? (Variable.DataType)variable.type : Variable.DataType.Null ); }
public static void SetLocal(GameObject target, string name, object value, bool inChildren = false) { Variable variable = LocalVariablesUtilities.Get(target, name, inChildren); if (variable != null) { variable.Update(value); VariablesManager.events.OnChangeLocal(target, name); } }
public static object GetLocal(GameObject target, string name, bool inChildren = false) { Variable variable = LocalVariablesUtilities.Get(target, name, inChildren); return(variable != null ? variable.Get() : null); }