示例#1
0
        // 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);
        }
示例#2
0
 public static void ListPush(ListVariables target, ListVariables.Position position, object value)
 {
     target.Push(value, position);
 }
示例#3
0
 public static void ListPush(ListVariables target, int index, object value)
 {
     target.Push(value, index);
 }
示例#4
0
        public void Set(object value, GameObject invoker = null)
        {
            ListVariables list = this.GetListVariables(invoker);

            list.Push(value, this.select, this.index);
        }