diff --git a/Assets/Scenes/Ride/Scripts/CyclingController.cs b/Assets/Scenes/Ride/Scripts/CyclingController.cs index e4ac450b..47363e04 100644 --- a/Assets/Scenes/Ride/Scripts/CyclingController.cs +++ b/Assets/Scenes/Ride/Scripts/CyclingController.cs @@ -59,8 +59,10 @@ public class CyclingController : DeviceServiceMonoBase } GameObject miniMap; GameObject resultPanel; - void Awake() + + protected override void Awake() { + base.Awake(); #if UNITY_EDITOR if (App.CurrentUser == null) { @@ -390,9 +392,7 @@ public class CyclingController : DeviceServiceMonoBase player.transform.position = pos; player.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f); target.position = pos; - playerController.currentPos = Vector3.zero; - - + //playerController.currentPos = Vector3.zero; arrowGameObj.SetActive(true); Is3dView = false; } @@ -608,8 +608,4 @@ public class CyclingController : DeviceServiceMonoBase return list; } #endregion - private void OnApplicationQuit() - { - App.MainDeviceAdapter.Dispose(); - } } diff --git a/Assets/Scenes/Ride/Scripts/DeviceServiceMonoBase.cs b/Assets/Scenes/Ride/Scripts/DeviceServiceMonoBase.cs index 202748ea..b8240cb0 100644 --- a/Assets/Scenes/Ride/Scripts/DeviceServiceMonoBase.cs +++ b/Assets/Scenes/Ride/Scripts/DeviceServiceMonoBase.cs @@ -3,6 +3,7 @@ using Assets.Scripts.Devices; using Assets.Scripts.Devices.Ant; using Assets.Scripts.Devices.Ant.Interfaces; using Assets.Scripts.Devices.Ble; +using Assets.Scripts.Scenes; using System; using System.Collections.Generic; using System.Linq; @@ -10,7 +11,7 @@ using UnityEngine; namespace Assets.Scenes.Ride.Scripts { - public class DeviceServiceMonoBase: MonoBehaviour + public class DeviceServiceMonoBase: BaseScene { public void TrackResistance(double grade) { diff --git a/Assets/Scenes/Ride/Scripts/SingleUIManager.cs b/Assets/Scenes/Ride/Scripts/SingleUIManager.cs index 1c2c7118..a11ba7a7 100644 --- a/Assets/Scenes/Ride/Scripts/SingleUIManager.cs +++ b/Assets/Scenes/Ride/Scripts/SingleUIManager.cs @@ -280,7 +280,7 @@ namespace Assets.Scenes.Ride.Scripts //开发者视角调整 cameraSlider = transform.Find("Panel/CameraSlider").GetComponent(); Text CameraText = transform.Find("Panel/CameraSlider/Text").GetComponent(); - string[] phoneList = new string[] { "18120141032", "15651831367", "13115011550", "15261826280" }; + string[] phoneList = new string[] { "18120141032", "15651831367", "18120141031", "15261826280", "18662240319" }; if (phoneList.Contains(App.CurrentUser.Phone)) { cameraSlider.gameObject.SetActive(true);