public override async Task <Object> CreateView(IEntity entity)
        {
            ListItemComponent listItemComponet = entity.GetComponent <ListItemComponent>();

            ResourcePath = UIManager.AssetBundlePath + listItemComponet.ItemName + ".prefab";
            return(await base.CreateView(entity));
        }
Exemplo n.º 2
0
        public virtual void Apply(IEntity entity)
        {
            var listItemComponent = new ListItemComponent {
                ItemName = itemName, List = list, ID = id
            };

            entity.AddComponents(listItemComponent);
        }