using System; using CIGEnums; using SUISS.Core; using SUISSEngine; using UnityEngine; public class CashBalloon : Balloon { public CashBalloon() : base(GridTileIconType.WalkerBalloon, SpeechBaloonType.Cash) { int level = SingletonMonobehaviour.Instance.Level; int value = UnityEngine.Random.Range(20 * Mathf.Max(1, level / 10), 50 * Mathf.Max(1, level / 10)); this.Reward = new Currencies("Cash", value); } public Currencies Reward { get; private set; } public override void Collect() { SingletonMonobehaviour.Instance.EarnCurrencies(this.Reward, this); base.Collect(); } }