bool BuyTwoLives() { int price = 100; if (player.GetLives() > 1) { ShowCustomError("Вам нічого не потрібно"); return(false); } else if (!tryToBuy(price)) { return(false); } player.AddLives(2); player.UpdateUI(); return(true); }