From 0315aae7e77a341aba55c103e8360651bb2ad933 Mon Sep 17 00:00:00 2001 From: dnk1234567 Date: Sat, 26 Feb 2022 14:38:52 +0800 Subject: [PATCH 1/7] 233 --- .../Resources/Prefabs/UI/PlayerInfoUI.prefab | 6 +++--- Assets/Scripts/Data/GameData/GameEventData.cs | 1 + Assets/Scripts/UI/GameUI/PlayerInfoUI.cs | 21 +++++++++++++++++++ 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/Assets/Resources/Prefabs/UI/PlayerInfoUI.prefab b/Assets/Resources/Prefabs/UI/PlayerInfoUI.prefab index 5bd6869..8e43b1c 100644 --- a/Assets/Resources/Prefabs/UI/PlayerInfoUI.prefab +++ b/Assets/Resources/Prefabs/UI/PlayerInfoUI.prefab @@ -1781,7 +1781,7 @@ RectTransform: m_GameObject: {fileID: 2922561978496405277} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} + m_LocalScale: {x: 1.0211886, y: 0.87064457, z: 0.86265} m_Children: [] m_Father: {fileID: 2922561980104388487} m_RootOrder: 1 @@ -2932,7 +2932,7 @@ RectTransform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2922561980104388480} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalPosition: {x: 0, y: 0, z: -2.7} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 2922561979714451338} @@ -2943,7 +2943,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0.000076293945, y: -14.913} + m_AnchoredPosition: {x: 1.1000061, y: -14.799999} m_SizeDelta: {x: 0.000091552734, y: -29.825619} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &2922561980104388486 diff --git a/Assets/Scripts/Data/GameData/GameEventData.cs b/Assets/Scripts/Data/GameData/GameEventData.cs index 00986e8..edf07e2 100644 --- a/Assets/Scripts/Data/GameData/GameEventData.cs +++ b/Assets/Scripts/Data/GameData/GameEventData.cs @@ -72,6 +72,7 @@ public enum PlayerCommandType GameResume = 2012, LaunchExternalTransport = 2013, DeliveryAgreement = 2014, + ChangeTimeScaleToLevel = 2015, } public class GameEventData : GameDataBase diff --git a/Assets/Scripts/UI/GameUI/PlayerInfoUI.cs b/Assets/Scripts/UI/GameUI/PlayerInfoUI.cs index f993d05..b9f8d77 100644 --- a/Assets/Scripts/UI/GameUI/PlayerInfoUI.cs +++ b/Assets/Scripts/UI/GameUI/PlayerInfoUI.cs @@ -144,6 +144,12 @@ public class PlayerInfoUI : UIBase OnChangeTime(false); }); + //时间调整到某一级 + Get("TimeSpeed").Find("TimeLevel1").GetComponent