您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

37 行
701 B

  1. using System;
  2. using SUISS.Core;
  3. using SUISSEngine;
  4. using UnityEngine;
  5. [Serializable]
  6. public class DailyReward
  7. {
  8. public string Currency
  9. {
  10. get
  11. {
  12. return this._currency;
  13. }
  14. }
  15. public decimal Value
  16. {
  17. get
  18. {
  19. return (decimal)this._value;
  20. }
  21. }
  22. public void CollectReward(object source)
  23. {
  24. Currencies c = (!(this.Currency == "LevelUp")) ? new Currencies(this.Currency, this.Value) : new Currencies("XP", SingletonMonobehaviour<CIGGameState>.Instance.GetXpForLevelsUp(this.Value));
  25. SingletonMonobehaviour<CIGGameState>.Instance.EarnCurrencies(c, source);
  26. }
  27. [SerializeField]
  28. private string _currency;
  29. [SerializeField]
  30. private float _value;
  31. }