解决大地球收藏问题&单人骑行切换地图海拔图位置问题和地图不全

This commit is contained in:
lishuo committed 2021-11-02 14:38:05 +08:00
1 parent 558fb16160
commit a9fc25defb
3 files changed
+15 -11

No files matched your search

@@ -492,7 +492,9 @@ public class CyclingController : DeviceServiceMonoBase
public void GameStart()
{
var check = CheckAnt();
#if UNITY_EDITOR
check = true;
#endif
if (check)
{
singleUIManager.StartRide();
@@ -666,10 +668,6 @@ public class CyclingController : DeviceServiceMonoBase
public bool Is3dView;
public void ChangeMapImageStyle(GameObject arrowGameObj)
{
//var playerController = player.GetComponent<PlayerController>();
//var trailRenderer = player.GetComponent<TrailRenderer>();
//trailRenderer.time = 0;
var trailRendererList = transform.GetComponentsInChildren<TrailRenderer>();
foreach (var item in trailRendererList)
{
@@ -716,13 +714,16 @@ public class CyclingController : DeviceServiceMonoBase
arrowGameObj.SetActive(true);
Is3dView = false;
}
ChangeCurrentPlayer(currentPlayer.UserId);
if (competitionId > 0)
{
ChangeCurrentPlayer(currentPlayer.UserId);
}
}
private bool lockView = false;
private void Map_OnTileFinished(Mapbox.Unity.MeshGeneration.Data.UnityTile obj)
{
if (!lockView) {
if (!lockView)
{
var playerController = player.GetComponent<PlayerController>();
player.transform.localScale = new Vector3(3f, 3f, 3f);