コード例 #1
0
 public void StoreBlood()
 {
     _playerInv.UseBlood(StoreBloodAmount);
     StoredBlood += StoreBloodAmount;
     UpdateBloodBankUI();
     PlayBuySound();
 }
コード例 #2
0
 void FertilizBed()
 {
     if (!_fertilized)
     {
         _playerInv.UseBlood((int)_playerInv.FertilizeCost);
         _spriteRenderer.color = Color.red;
         _fertilzeLeft         = _fertilizeUsage;
         _fertilizeText.text   = _fertilzeLeft.ToString();
         _fertilizeText.gameObject.SetActive(true);
         _fertilized = true;
         UpdateInfoText();
     }
 }