Exemplo n.º 1
0
    public void SavePlayerItem()
    {
        Dropdown itemDropdown = transform.Find("itemInput").GetComponent <Dropdown>();
        Item     it           = items.ElementAt(itemDropdown.value);

        Mysql mysql = FindObjectOfType <Mysql>();

        mysql.AddPlayerItem(player_id, it);

        slot = null;
        transform.gameObject.SetActive(false);

        PlayerItemsTable script = playerItemsTable.GetComponent <PlayerItemsTable>();

        script.Reload(player_id);
    }