Beispiel #1
0
        public void Setup()
        {
            _itemDefinition           = new ItemDefinition(System.Guid.NewGuid());
            _equippableItemDefinition = new EquippableItemDefinition(System.Guid.NewGuid());

            ItemFactory.Bind <ItemDefinition, ItemInstance>();
        }
Beispiel #2
0
    // Start is called before the first frame update
    void Start()
    {
        var c = GetComponent <LayoutItemCollectionCreator>();

        ItemFactory.Bind <ComponentItemDefinition, ComponentItemInstance>();

        foreach (ComponentItemDefinition item in items)
        {
            var inst = ItemFactory.CreateInstance(item, System.Guid.NewGuid());
            c.collection.Add(inst, 1);
        }
    }
Beispiel #3
0
 public void Awake()
 {
     ItemFactory.Bind <UMAEquippableItemDefinition, UMAEquippableItemInstance>();
     ItemFactory.Bind <UMARecipeItemDefinition, UMARecipeItemInstance>();
 }
Beispiel #4
0
 public void CreateDerivedBindingTest()
 {
     ItemFactory.Bind <EquippableItemDefinition, EquippableItemInstance>();
 }
Beispiel #5
0
 public void Awake()
 {
     ItemFactory.Bind <Morph3DHairDefinition, Morph3DHairInstance>();
     ItemFactory.Bind <Morph3DCloththingDefinition, Morph3DClothingInstance>();
     ItemFactory.Bind <Morph3DPropDefinition, Morph3DPropInstance>();
 }