コード例 #1
0
    public void UpgradeCurrentStat()
    {
        switch (currentStat)
        {
        case StatsType.AGILITY:
            ApplicationController.ac.UpgradeAgility(currentCharacter, cost);
            break;

        case StatsType.STAMINA:
            ApplicationController.ac.UpgradeStamina(currentCharacter, cost);
            break;

        case StatsType.BREATH:
            ApplicationController.ac.UpgradeBreath(currentCharacter, cost);
            break;
        }
        gameObject.SetActive(false);
        ApplicationController.ac.Save();
        characterSelector.RefreshUI();
        coinDisplayer.RefreshUI();
    }