コード例 #1
0
 public void BuyCharacter()
 {
     if (ID == 1)
     {
         GameManager.gameManager.SubtractMoney(price);
         PersistentDataManager.BuyWaifu(Waifu.Sora);
     }
     else if (ID == 2)
     {
         GameManager.gameManager.SubtractMoney(price);
         PersistentDataManager.BuyWaifu(Waifu.Nana);
     }
     else if (ID == 3)
     {
         GameManager.gameManager.SubtractMoney(price);
         PersistentDataManager.BuyWaifu(Waifu.Yellow);
     }
     else if (ID == 4)
     {
         GameManager.gameManager.SubtractMoney(price);
         PersistentDataManager.BuyWaifu(Waifu.Rival);
     }
 }