Fix jump button and expand width here

This commit is contained in:
2026-02-08 02:07:57 -07:00
parent c8375fdcc1
commit 57222712b6
2 changed files with 4 additions and 3 deletions

View File

@@ -691,8 +691,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0} m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 0} m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: -260, y: 85} m_AnchoredPosition: {x: -290, y: 85}
m_SizeDelta: {x: 500, y: 150} m_SizeDelta: {x: 560, y: 150}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &116559985 --- !u!114 &116559985
MonoBehaviour: MonoBehaviour:

View File

@@ -691,7 +691,8 @@ public class GamePlayer : MonoBehaviour
bird.transform.position = new UnityEngine.Vector2(bird.transform.position.x, -4.1359f); bird.transform.position = new UnityEngine.Vector2(bird.transform.position.x, -4.1359f);
rb.linearVelocity = new UnityEngine.Vector2(rb.linearVelocity.x, 0f); rb.linearVelocity = new UnityEngine.Vector2(rb.linearVelocity.x, 0f);
} }
if (Application.isMobilePlatform) jumpButton.transform.GetChild(0).GetComponent<TMP_Text>().color = isGrounded ? Color.white : Color.red; var btnColor = BazookaManager.Instance.GetColorSettingButton();
if (Application.isMobilePlatform) jumpButton.transform.GetChild(0).GetComponent<TMP_Text>().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() internal void TogglePause()