This commit is contained in:
2025-09-05 16:51:06 -07:00
parent c16185e1de
commit a426a26f09

View File

@@ -399,11 +399,11 @@ public class GamePlayer : MonoBehaviour
audio.pitch = speedyLeft > 0f ? 1.3f : 1f; audio.pitch = speedyLeft > 0f ? 1.3f : 1f;
} }
if (BazookaManager.Instance.GetSettingShowFPS() && Time.time > nextUpdate) if (BazookaManager.Instance.GetSettingShowFPS() && Time.time > nextUpdate)
{ {
fps = 1f / Time.deltaTime; fps = 1f / Time.deltaTime;
fpsCounter.text = "FPS: " + Mathf.Round(fps); fpsCounter.text = "FPS: " + Mathf.Round(fps);
nextUpdate = Time.time + 0.25f; nextUpdate = Time.time + 0.25f;
} }
if (screenWidth != Camera.main.orthographicSize * 2f * Camera.main.aspect) if (screenWidth != Camera.main.orthographicSize * 2f * Camera.main.aspect)
{ {
screenWidth = Camera.main.orthographicSize * 2f * Camera.main.aspect; screenWidth = Camera.main.orthographicSize * 2f * Camera.main.aspect;
@@ -568,7 +568,7 @@ public class GamePlayer : MonoBehaviour
else if (UnityEngine.Vector3.Distance(bird.transform.position, randomBerry.transform.position) < 1.5f) else if (UnityEngine.Vector3.Distance(bird.transform.position, randomBerry.transform.position) < 1.5f)
{ {
totalRandomBerries++; totalRandomBerries++;
System.Action[] funcs = { System.Action[] funcs = {
() => DoNormalBerry(randomBerry), () => DoNormalBerry(randomBerry),
() => DoSlowBerry(randomBerry), () => DoSlowBerry(randomBerry),
() => DoUltraBerry(randomBerry), () => DoUltraBerry(randomBerry),