public void CoinRushActive(int bonus) { bonusActive = true; twoTimesMultiplier.SetActive(true); BonusMultiplier.SetMultiplierAmount(bonus); coinRushMeter.GetComponent <Animator>().SetBool("CoinRush", true); }
public void CoinRushInactive() { coinRush = false; superCoinRush = false; BonusMultiplier.ResetMultiplierAmount(); bonusActive = false; twoTimesMultiplier.SetActive(false); fourTimesMultiplier.SetActive(false); coinRushMeter.GetComponent <Animator>().SetBool("CoinRush", false); superCoinRushMeter.GetComponent <Animator>().SetBool("SuperCoinRush", false); }
public override int GetHashCode() { int hash = 1; if (BucketsPerDay != 0) { hash ^= BucketsPerDay.GetHashCode(); } if (StreakLength != 0) { hash ^= StreakLength.GetHashCode(); } if (BonusMultiplier != 0F) { hash ^= BonusMultiplier.GetHashCode(); } if (StreakBonusMultiplier != 0F) { hash ^= StreakBonusMultiplier.GetHashCode(); } return(hash); }
public void CreateBonusMultiplier() { _bonusMultiplier = new BonusMultiplier(); }
public void IncrementScore(int score) { coinRushController.IncrementMeter(); this.score += BonusMultiplier.GetScore(score); UpdateScore(); }