public void DoBonus(BonusTypes bonusType, int value) { switch (bonusType) { case BonusTypes.AddCurrency: bonus.AddCurrency(value); break; case BonusTypes.Multiplier: Debug.LogWarning("Button not found"); break; } }
public void DoBonus(BonusTypes bonusType, int value) { switch (bonusType) { case BonusTypes.AddCurrency: bonus.AddCurrency(value); break; case BonusTypes.Multiplier: Debug.LogWarning("Button not found"); break; } }