1234567891011121314151617181920212223242526 |
- using XGame.Framework.Data;
- namespace FL.Data
- {
- /// <summary>
- /// 支付、广告等数据
- /// </summary>
- public class PaymentData : DataSingleton<PaymentData>
- {
- public GoodsOrder goodsOrder;
- public EPayActionType _action;
- /// <summary>
- /// 是否正在支付/广告
- /// </summary>
- public bool IsBusy => _action != EPayActionType.None;
- /// <summary>
- /// 当前支付行为,客户端同一时间只能做一件事
- /// </summary>
- public EPayActionType Action => _action;
- public void SetAction(EPayActionType action)
- {
- _action = action;
- }
- }
- }
|