From 486b385c8450efc330dc581d8acc7e81cdd1d904 Mon Sep 17 00:00:00 2001 From: lishuo Date: Tue, 28 Sep 2021 11:30:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=90=9C=E7=B4=A2=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Scripts/Scenes/Ride/Scripts/CyclingController.cs | 11 +---------- Assets/Scripts/UI/Prefab/Panel/MapListController.cs | 11 ++++++----- Assets/Scripts/UI/Prefab/Race/RaceListScript.cs | 12 +++++++----- Assets/Scripts/UI/Prefab/ResultList/RouteItem.cs | 4 ++++ 4 files changed, 18 insertions(+), 20 deletions(-) diff --git a/Assets/Scripts/Scenes/Ride/Scripts/CyclingController.cs b/Assets/Scripts/Scenes/Ride/Scripts/CyclingController.cs index 1d448f49..5cac3d2e 100644 --- a/Assets/Scripts/Scenes/Ride/Scripts/CyclingController.cs +++ b/Assets/Scripts/Scenes/Ride/Scripts/CyclingController.cs @@ -457,16 +457,7 @@ public class CyclingController : DeviceServiceMonoBase var currentIndex = currentPlayer.CurrentIndex; graph.HorizontalScrolling = chartDataSourceScript.GetCurrentStart(currentIndex); } - public void ChangeRandomPlayer() - { - var coll = FindObjectsOfType(); - var selectedPlayer = coll.FirstOrDefault(); - if (selectedPlayer != null) - { - currentPlayer = selectedPlayer; - } - //如果是3d地图,显示3d小人 - } + //初始化人物位置角度 private void InitPlayer() { diff --git a/Assets/Scripts/UI/Prefab/Panel/MapListController.cs b/Assets/Scripts/UI/Prefab/Panel/MapListController.cs index fdb88b30..d28e0eea 100644 --- a/Assets/Scripts/UI/Prefab/Panel/MapListController.cs +++ b/Assets/Scripts/UI/Prefab/Panel/MapListController.cs @@ -203,11 +203,12 @@ public class MapListController : PFUIPanel searchInput = topContainer.Find("SearchInput"); if (searchInput != null) { - //searchInput.GetComponent().onEndEdit.AddListener((s) => - //{ - // Debug.Log(Input.GetKeyUp(KeyCode.A)); - // //onEndEdit(s); - //}); + searchInput.GetComponent().onEndEdit.AddListener((s) => + { + var t = searchInput.GetComponent().text; + ftname = t; + }); + UIManager.AddEvent(searchInput.Find("Button").gameObject, EventTriggerType.PointerClick, (b) => { onEndEdit(); diff --git a/Assets/Scripts/UI/Prefab/Race/RaceListScript.cs b/Assets/Scripts/UI/Prefab/Race/RaceListScript.cs index f4fabe74..cbcbbb9d 100644 --- a/Assets/Scripts/UI/Prefab/Race/RaceListScript.cs +++ b/Assets/Scripts/UI/Prefab/Race/RaceListScript.cs @@ -172,13 +172,15 @@ public class RaceListScript : RaceScript Refresh(); }); } - searchInput = transform.Find("SearchInput"); + searchInput = transform.Find("Conditions/SearchInput"); if (searchInput != null) { - //UIManager.AddEvent(searchInput.Find("Button").gameObject, EventTriggerType.PointerClick, (b) => - //{ - // //onEndEdit(); - //}); + UIManager.AddEvent(searchInput.Find("Button").gameObject, EventTriggerType.PointerClick, (b) => + { + var t = searchInput.GetComponent().text; + raceName = t; + //onEndEdit(); + }); searchInput.GetComponent().onEndEdit.AddListener((string s) => { onEndEdit(); diff --git a/Assets/Scripts/UI/Prefab/ResultList/RouteItem.cs b/Assets/Scripts/UI/Prefab/ResultList/RouteItem.cs index ef6fc118..9cd57cd6 100644 --- a/Assets/Scripts/UI/Prefab/ResultList/RouteItem.cs +++ b/Assets/Scripts/UI/Prefab/ResultList/RouteItem.cs @@ -90,7 +90,11 @@ public class RouteItem : MonoBehaviour { //btnDelete.gameObject.SetActive(false); //btnDelete.GetComponent