예제 #1
0
    private void Start()
    {
        Inventory = global::Inventory.Scripts.Inventory.instance;

        Inventory.OnItemChangedCallBack += UpdateUI;
        _slots = itemsParent.GetComponentsInChildren <Inventory_Slot>();
    }
예제 #2
0
    private void Start()
    {
        int numSlots = System.Enum.GetNames(typeof(EqipmentSlot)).Length;

        currentEquipment = new Equipment[numSlots];
        inventory        = Inventory.Scripts.Inventory.instance;
        currentMeshes    = new SkinnedMeshRenderer[numSlots];
    }