// Start is called before the first frame update
    void Start()
    {
        instance = this;
        gameObject.SetActive(false);
        shopBuyNodes = new List <ShopBuyNode>();


        buysellMode = ShopScreenMode.Buy;
    }
    public void SetBuyMode()
    {
        buysellMode = ShopScreenMode.Buy;
        sellRect.gameObject.SetActive(false);
        buyRect.gameObject.SetActive(true);

        if (shopBuyNodes.Count == 0)
        {
            GamepadInputManager.instance.gamepadInputs[currentPlayer.mPlayerIndex].GetEventSystem().SetSelectedGameObject(buyButton);
        }
        else
        {
            defaultObject = shopBuyNodes[0].gameObject;
            currentNode   = shopBuyNodes[0];
            GamepadInputManager.instance.gamepadInputs[currentPlayer.mPlayerIndex].GetEventSystem().SetSelectedGameObject(defaultObject);
        }
    }