Fix jump button and expand width here
This commit is contained in:
2 files changed
+4
-3
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user