Ejemplo n.º 1
0
 public override Variable GetRuntimeVariable()
 {
     return(LocalVariablesUtilities.Get(
                ((MBVariable)this.target).gameObject,
                this.spVariableName.stringValue,
                false
                ));
 }
Ejemplo n.º 2
0
        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
                   );
        }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
        public static object GetLocal(GameObject target, string name, bool inChildren = false)
        {
            Variable variable = LocalVariablesUtilities.Get(target, name, inChildren);

            return(variable != null ? variable.Get() : null);
        }