コード例 #1
0
 public void Purchase()
 {
     if (!purchased)
     {
         money.SubMoney(price);
         purchased = true;
         Debug.Log("bought");
         GiveItem();
     }
 }