// PUBLIC METHODS: ------------------------------------------------------------------------ public object Get(GameObject invoker) { ListVariables list = this.GetListVariables(invoker); Variable result = VariablesManager.GetListItem(list, this.select, this.index); return(result != null?result.Get() : null); }
// PUBLIC METHODS: ------------------------------------------------------------------------ public override object Get(GameObject invoker = null) { return(VariablesManager.GetLocal( this.GetGameObject(invoker), this.name, this.inChildren )); }
public override void Set(object value, GameObject invoker = null) { VariablesManager.SetLocal( this.GetGameObject(invoker), this.name, value, this.inChildren ); }
public override string ToStringValue(GameObject invoker = null) { object value = VariablesManager.GetLocal( this.GetGameObject(invoker), this.name, this.inChildren ); return(value != null ? value.ToString() : "null"); }
public static void ListClear(ListVariables target) { if (target == null) { return; } for (int i = target.variables.Count - 1; i >= 0; --i) { VariablesManager.ListRemove(target, i); } }
public override string ToStringValue(GameObject invoker = null) { object value = VariablesManager.GetGlobal(this.name); return(value != null ? value.ToString() : "null"); }
public override void Set(object value, GameObject invoker = null) { VariablesManager.SetGlobal(this.name, value); }
// PUBLIC METHODS: ------------------------------------------------------------------------ public override object Get(GameObject invoker = null) { return(VariablesManager.GetGlobal(this.name)); }
public override Variable.DataType GetDataType(GameObject invoker = null) { GameObject vars = this.GetGameObject(invoker); return(VariablesManager.GetLocalType(vars, this.name, true)); }
// EXECUTABLE: ---------------------------------------------------------------------------- public override bool InstantExecute(GameObject target, IAction[] actions, int index) { VariablesManager.Reset(); return(true); }
public override Variable.DataType GetDataType(GameObject invoker = null) { return(VariablesManager.GetGlobalType(this.name, true)); }