PaymentData.cs 687 B

1234567891011121314151617181920212223242526
  1. using XGame.Framework.Data;
  2. namespace FL.Data
  3. {
  4. /// <summary>
  5. /// 支付、广告等数据
  6. /// </summary>
  7. public class PaymentData : DataSingleton<PaymentData>
  8. {
  9. public GoodsOrder goodsOrder;
  10. public EPayActionType _action;
  11. /// <summary>
  12. /// 是否正在支付/广告
  13. /// </summary>
  14. public bool IsBusy => _action != EPayActionType.None;
  15. /// <summary>
  16. /// 当前支付行为,客户端同一时间只能做一件事
  17. /// </summary>
  18. public EPayActionType Action => _action;
  19. public void SetAction(EPayActionType action)
  20. {
  21. _action = action;
  22. }
  23. }
  24. }