private void Start()
    {
        bag = new List <GameObject>();

        gameController = FindObjectOfType <GameController>();
        playerBagGUI   = Resources.FindObjectsOfTypeAll <PlayerBagGUI>()[0];
        allItems       = gameController.GetComponent <ItemList>();

        AddItem(2);
    }
 private void Update()
 {
     if (gameController.gameStatus == GameStatus.GameRunning && Input.GetKeyDown(KeyCode.Q))
     {
         if (!playerBagGUI)
         {
             playerBagGUI = Resources.FindObjectsOfTypeAll <PlayerBagGUI>()[0];
         }
         gameController.GamePause(true, false);
         playerBagGUI.gameObject.SetActive(true);
     }
     else if (gameController.gameStatus == GameStatus.GamePaused && Input.GetKeyDown(KeyCode.Q))
     {
         if (playerBagGUI.gameObject.activeInHierarchy)
         {
             gameController.GamePause(false, false);
             playerBagGUI.gameObject.SetActive(false);
         }
     }
 }