骑行页面增加错误诊断,解决视角切换箭头位置回到起点问题

This commit is contained in:
lishuo 2021-06-10 18:14:14 +08:00
parent 734893ff83
commit 8dfd4d696c
3 changed files with 7 additions and 10 deletions

View File

@ -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();
}
}

View File

@ -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)
{

View File

@ -280,7 +280,7 @@ namespace Assets.Scenes.Ride.Scripts
//开发者视角调整
cameraSlider = transform.Find("Panel/CameraSlider").GetComponent<Slider>();
Text CameraText = transform.Find("Panel/CameraSlider/Text").GetComponent<Text>();
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);