修复ios蓝牙关闭功率不变的问题
This commit is contained in:
1 parent
c12df53c18
commit
5f0efe3995
7 files changed
+38
-6
No files matched your search
@@ -237,6 +237,7 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
SceneManager.activeSceneChanged += SceneManager_activeSceneChanged;
|
||||
|
||||
HandleTouchAndInput();
|
||||
StartCoroutine(Ping());
|
||||
//进入比赛
|
||||
if (competitionId > 0)
|
||||
{
|
||||
@@ -253,6 +254,14 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
|
||||
|
||||
}
|
||||
private IEnumerator Ping()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
var result = ConfigHelper.mapApi.GetPing();
|
||||
yield return new WaitForSeconds(5);
|
||||
}
|
||||
}
|
||||
|
||||
float timer = 1f;
|
||||
bool clearLock = false;
|
||||
|
||||
Reference in new issue
Block a user