// EXECUTE METHOD: ------------------------------------------------------------------------ public override bool InstantExecute(GameObject target, IAction[] actions, int index) { ListVariables list = this.listVariables.GetListVariables(target); if (list == null) { return(true); } GameObject elementGo = this.item.GetGameObject(target); if (elementGo == null) { return(true); } list.Push(elementGo, this.listVariables.select, this.listVariables.index); return(true); }
public static void ListPush(ListVariables target, ListVariables.Position position, object value) { target.Push(value, position); }
public static void ListPush(ListVariables target, int index, object value) { target.Push(value, index); }
public void Set(object value, GameObject invoker = null) { ListVariables list = this.GetListVariables(invoker); list.Push(value, this.select, this.index); }