Пример #1
0
        public void PurchaseCharacter(int character)
        {
            int cost = dataManager.GetCharacterCost(character);

            if (dataManager.GetTotalCoins(true) < cost)
            {
                return;
            }
            dataManager.PurchaseCharacter(character);
            dataManager.SetSelectedCharacter(character);
            dataManager.AdjustTotalCoins(-cost, true);
        }