public override TaskStatus OnUpdate()
        {
            if (collection == null)
            {
                return(TaskStatus.Failure);
            }
            collection.SetItems(items, true);

            return(TaskStatus.Success);
        }
        public bool OnTriggerUsed(Player player)
        {
            // When the user has triggered this object, set the items in the window
            _collection.SetItems(items, true);

            _syncer = new CollectionToArraySyncer(_collection, items);
            _syncer.StartSyncing();

            // And done!
            return(false);
        }
Example #3
0
 public override BlockReturn Run(BlockReturn param)
 {
     collection.SetItems(items.ToArray(), true);
     return(BlockReturn.OK);
 }
Example #4
0
 public override void OnEnter()
 {
     collection.SetItems(items, true);
     Finish();
 }