Esempio n. 1
0
    public void ConfirmPurchase()
    {
        ShopManager sgr = FindObjectOfType <ShopManager>();

        AudioSource.PlayClipAtPoint(purchaseSound, Camera.main.transform.position);
        mgr.BuyItem();
        mgr.EquipItem();
        sgr.UpdateText();
        sgr.UpdateSelectButton();
        Close();
    }
Esempio n. 2
0
 void EquipItem()
 {
     audioSource.PlayOneShot(equipSound);
     mgr.EquipItem();
     UpdateSelectButton();
 }