Example #1
0
        public override void _Ready()
        {
            equipmentSlotsManager   = GetNode <EquipmentSlotsManager>(equipmentSlotsManagerPath);
            backPackSlotManager     = GetNode <BackPackSlotManager>(backPackSlotManagerPath);
            inventoryDragController = GetNode <InventoryDragController>(inventoryDragControllerPath);
            lootChestMenuController = GetNode <LootChestMenuController>(chestMenuControllerPath);

            backPackSlotManager.OnDropItemOnGround += HandleOnDropItem;
            backPackSlotManager.OnShowContextMenu  += HandleOnShowContextMenu;

            equipmentSlotsManager.OnDropItemOnGround += HandleOnDropItem;
            equipmentSlotsManager.OnShowContextMenu  += HandleOnShowContextMenu;
        }
 public void Init(EquipmentSlotsManager equipmentSlotsManager, BackPackSlotManager backPackSlotManager)
 {
     this.equipmentSlotsManager = equipmentSlotsManager;
     this.backPackSlotManager   = backPackSlotManager;
 }