public async void RenewalInfo() { if (isRenewalIn) { return; } isRenewalIn = true; while (gameObject.activeInHierarchy) { int netwrokType = SdkMgr.Ins.GetNetworkInfo(); mWifiGo.SetActive(false); mMobileNetworkGo.SetActive(false); mNoneNetworkGo.SetActive(false); switch (netwrokType) { case NetworkType.None: mNoneNetworkGo.SetActive(true); break; case NetworkType.Mobile: mMobileNetworkGo.SetActive(true); break; case NetworkType.Wifi: mWifiGo.SetActive(true); break; } Log.Debug("当前电量:" + SdkMgr.Ins.GetBatteryElectric()); mCellImage.fillAmount = SdkMgr.Ins.GetBatteryElectric() / 100.00f; DateTime nowTime = TimeTool.GetCurrenDateTime(); mTimeText.text = nowTime.Hour + ":" + nowTime.Minute; await ETModel.Game.Scene.GetComponent <TimerComponent>().WaitAsync(10000); } isRenewalIn = false; }