From 57222712b6e2e0e7700e4d7cdd844e338a051c62 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Sun, 8 Feb 2026 02:07:57 -0700 Subject: [PATCH] Fix jump button and expand width here --- Assets/Scenes/GamePlayer.unity | 4 ++-- Assets/Scripts/GamePlayer.cs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Assets/Scenes/GamePlayer.unity b/Assets/Scenes/GamePlayer.unity index 91cb0f7..2023fbd 100644 --- a/Assets/Scenes/GamePlayer.unity +++ b/Assets/Scenes/GamePlayer.unity @@ -691,8 +691,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 0} m_AnchorMax: {x: 1, y: 0} - m_AnchoredPosition: {x: -260, y: 85} - m_SizeDelta: {x: 500, y: 150} + m_AnchoredPosition: {x: -290, y: 85} + m_SizeDelta: {x: 560, y: 150} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &116559985 MonoBehaviour: diff --git a/Assets/Scripts/GamePlayer.cs b/Assets/Scripts/GamePlayer.cs index 056d618..145b083 100644 --- a/Assets/Scripts/GamePlayer.cs +++ b/Assets/Scripts/GamePlayer.cs @@ -691,7 +691,8 @@ public class GamePlayer : MonoBehaviour bird.transform.position = new UnityEngine.Vector2(bird.transform.position.x, -4.1359f); rb.linearVelocity = new UnityEngine.Vector2(rb.linearVelocity.x, 0f); } - if (Application.isMobilePlatform) jumpButton.transform.GetChild(0).GetComponent().color = isGrounded ? Color.white : Color.red; + var btnColor = BazookaManager.Instance.GetColorSettingButton(); + if (Application.isMobilePlatform) jumpButton.transform.GetChild(0).GetComponent().color = isGrounded ? new Color(int.Parse(btnColor[0].ToString()) / 255f, int.Parse(btnColor[1].ToString()) / 255f, int.Parse(btnColor[2].ToString()) / 255f) : Color.red; } internal void TogglePause()