GigRewardButton.cs 455 B

1234567891011121314151617181920212223242526272829
  1. using UnityEngine;
  2. namespace WebTools.Reward
  3. {
  4. public enum RewarType
  5. {
  6. Experience,
  7. Dollar,
  8. Glam,
  9. Stars
  10. }
  11. public class GigRewardButton : RewardBase
  12. {
  13. protected override void Start()
  14. {
  15. float random = Random.value;
  16. if (random < 0.5f)
  17. SetExperience();
  18. else
  19. SetDollar();
  20. base.Start();
  21. }
  22. }
  23. }