public override void Init()
        {
            playerController          = FindObjectOfType <PlayerController>();
            amountOfSelectableWeapons = inventoryData.maxInventoryWeaponsAmount;
            equipSelectedWeaponsButton.onClick.AddListener(EquipPlayer);
            moveToMousePosController = FindObjectOfType <PlayerAimTargetIdentifier>().GetComponent <MoveToMousePosition>();
            for (int i = 0; i < selectableWeapons.Count; i++)
            {
                GameObject         geo       = Instantiate(selectableWeaponWindowPrefab, listGridParent);
                SelectableWeaponUI component = geo.GetComponent <SelectableWeaponUI>();
                component.Setup(selectableWeapons[i]);
                selectableWeaponWindows.Add(component);
            }

            if (devSettings.allowWeaponSelectionMenu == true)
            {
                window.SetActive(true);
                playerController.tickPlayer.value = false;
                moveToMousePosController.isActive = false;
            }
            else
            {
                window.SetActive(false);
            }
        }
 public void OnSelectableWeaponSelected(SelectableWeaponUI wpn)
 {
     selectedWeapons.Add(wpn);
     if (selectableWeapons.Count == amountOfSelectableWeapons)
     {
         LockSelectableWeapons();
     }
     UpdateSelectedWeaponsText();
 }
 public void OnSelectableWeaponDeselected(SelectableWeaponUI wpn)
 {
     selectedWeapons.Remove(wpn);
     UpdateSelectedWeaponsText();
 }