Make audio get faster when speedy berry is active
This commit is contained in:
@@ -391,6 +391,11 @@ public class GamePlayer : MonoBehaviour
|
||||
|
||||
void Update()
|
||||
{
|
||||
foreach (AudioSource audio in FindObjectsByType<AudioSource>(FindObjectsSortMode.None))
|
||||
{
|
||||
if (speedyLeft != 0 && audio.pitch == 1f) audio.pitch = 1.3f;
|
||||
if (speedyLeft == 0 && audio.pitch == 1.3f) audio.pitch = 1f;
|
||||
}
|
||||
if (BazookaManager.Instance.GetSettingShowFPS() && Time.time > nextUpdate)
|
||||
{
|
||||
fps = 1f / Time.deltaTime;
|
||||
|
||||
Reference in New Issue
Block a user