| | |
| | | public class GotoChargeWin : Window
|
| | | {
|
| | | [SerializeField] Text m_CTGStageDisplay;
|
| | |
|
| | | public long startTime = DateTime.Now.Ticks;
|
| | | |
| | | VipModel model { get { return ModelCenter.Instance.GetModel<VipModel>(); } }
|
| | | #region Built-in
|
| | | protected override void BindController()
|
| | |
| | | {
|
| | | }
|
| | |
|
| | | private void Update() {
|
| | | if (SDKUtility.Instance.FreePlatformInfo == null || string.IsNullOrEmpty(SDKUtility.Instance.FreePlatformInfo.account)){
|
| | | return;
|
| | | }
|
| | | |
| | | if (SDKUtility.Instance.FreePlatformInfo.account.EndsWith("@525"))
|
| | | {
|
| | | if (DateTime.Now.Ticks - startTime > 50000000)
|
| | | {
|
| | | CloseClick();
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | SDKUtility.Instance.onFreePlatformPayCancel += OnChargeComplete;
|
| | |
| | |
|
| | | m_CTGStageDisplay.text = Language.Get("GotoCharging");
|
| | | model.OnCTGStageChange += OnCTGStageChange;
|
| | |
|
| | | startTime = DateTime.Now.Ticks;
|
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|