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,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<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()