Пример #1
0
    public void OnPointerClick(PointerEventData eventData)
    {
        GameObject.Find("Sounds").GetComponent <Sounds>().PlaySoudTool();
        Inv.actionPanel.SetActive(false);
        switch (this.name)
        {
        case "Left":
            if (Inv.countNext > 0)
            {
                Inv.FillInventory("prev");
            }
            break;

        case "Right":
            if (Inv.NextExists())
            {
                Inv.FillInventory("next");
            }
            break;
        }
    }