骑行页面增加错误诊断,解决视角切换箭头位置回到起点问题
This commit is contained in:
parent
734893ff83
commit
8dfd4d696c
@ -59,8 +59,10 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
}
|
}
|
||||||
GameObject miniMap;
|
GameObject miniMap;
|
||||||
GameObject resultPanel;
|
GameObject resultPanel;
|
||||||
void Awake()
|
|
||||||
|
protected override void Awake()
|
||||||
{
|
{
|
||||||
|
base.Awake();
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
if (App.CurrentUser == null)
|
if (App.CurrentUser == null)
|
||||||
{
|
{
|
||||||
@ -390,9 +392,7 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
player.transform.position = pos;
|
player.transform.position = pos;
|
||||||
player.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f);
|
player.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f);
|
||||||
target.position = pos;
|
target.position = pos;
|
||||||
playerController.currentPos = Vector3.zero;
|
//playerController.currentPos = Vector3.zero;
|
||||||
|
|
||||||
|
|
||||||
arrowGameObj.SetActive(true);
|
arrowGameObj.SetActive(true);
|
||||||
Is3dView = false;
|
Is3dView = false;
|
||||||
}
|
}
|
||||||
@ -608,8 +608,4 @@ public class CyclingController : DeviceServiceMonoBase
|
|||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
private void OnApplicationQuit()
|
|
||||||
{
|
|
||||||
App.MainDeviceAdapter.Dispose();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,6 +3,7 @@ using Assets.Scripts.Devices;
|
|||||||
using Assets.Scripts.Devices.Ant;
|
using Assets.Scripts.Devices.Ant;
|
||||||
using Assets.Scripts.Devices.Ant.Interfaces;
|
using Assets.Scripts.Devices.Ant.Interfaces;
|
||||||
using Assets.Scripts.Devices.Ble;
|
using Assets.Scripts.Devices.Ble;
|
||||||
|
using Assets.Scripts.Scenes;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@ -10,7 +11,7 @@ using UnityEngine;
|
|||||||
|
|
||||||
namespace Assets.Scenes.Ride.Scripts
|
namespace Assets.Scenes.Ride.Scripts
|
||||||
{
|
{
|
||||||
public class DeviceServiceMonoBase: MonoBehaviour
|
public class DeviceServiceMonoBase: BaseScene
|
||||||
{
|
{
|
||||||
public void TrackResistance(double grade)
|
public void TrackResistance(double grade)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -280,7 +280,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
//开发者视角调整
|
//开发者视角调整
|
||||||
cameraSlider = transform.Find("Panel/CameraSlider").GetComponent<Slider>();
|
cameraSlider = transform.Find("Panel/CameraSlider").GetComponent<Slider>();
|
||||||
Text CameraText = transform.Find("Panel/CameraSlider/Text").GetComponent<Text>();
|
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))
|
if (phoneList.Contains(App.CurrentUser.Phone))
|
||||||
{
|
{
|
||||||
cameraSlider.gameObject.SetActive(true);
|
cameraSlider.gameObject.SetActive(true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user