예제 #1
0
 public void BuyDice()
 {
     if (LevelManager.GetInstance().Buy(GetNewDiceCost()))
     {
         DiceBoughtStat.AddPoints(1);
         CreateDice();
     }
 }
예제 #2
0
    private void Roll()
    {
        m_rollValue = Random.Range(1, m_stats.GetSides() + 1);
        m_text.text = m_rollValue.ToString();

        RollsStats.AddPoints(1);
        EyesStats.AddPoints(m_rollValue);
    }
예제 #3
0
    public void CheckCombos()
    {
        int comboCount = 0;

        foreach (string combo in m_unlockedComboStrings)
        {
            comboCount = m_allCombos[combo].CheckCombo(DiceManager.GetInstance().GetDiceList());
        }

        ComboGroup.AddPoints(comboCount);
        PerkManager.GetInstance().CheckPerks();
    }
예제 #4
0
 public void AddMoney(int rewardValue)
 {
     GoldStats.AddPoints(rewardValue);
     Money += rewardValue;
 }
예제 #5
0
 public void AddXp(int rewardValue)
 {
     XPStats.AddPoints(rewardValue);
     Xp += rewardValue;
 }