spa gets the love it deserves
This commit is contained in:
1 parent
3c211a56fb
commit
2492fe0f8b
24 files changed
+875
-819
No files matched your search
@@ -80,9 +80,9 @@ public class ShipAudio : MonoBehaviour {
|
||||
}
|
||||
|
||||
void Update() {
|
||||
srcShipAccel.pitch = Math.Min(1f, (1f / 500f) * ship.Speed);
|
||||
srcShipDecel.pitch = Math.Min(1f, (1f / 500f) * ship.Speed);
|
||||
srcShipStrafe.pitch = Math.Min(1f, (1f / 500f) * ship.Speed);
|
||||
srcShipAccel.pitch = Math.Min(0.5f, (1f / 500f) * ship.Speed);
|
||||
srcShipDecel.pitch = Math.Min(0.5f, (1f / 500f) * ship.Speed);
|
||||
srcShipStrafe.pitch = Math.Min(0.5f, (1f / 500f) * ship.Speed);
|
||||
|
||||
// Super fucking annoying
|
||||
// stops all the clicks and pops of starting / stopping the powerUnitClips
|
||||
@@ -117,6 +117,7 @@ public class ShipAudio : MonoBehaviour {
|
||||
|
||||
public void PlayNoise() {
|
||||
int noiseIndex = UnityEngine.Random.Range(0, noiseClips.Length);
|
||||
src.pitch = UnityEngine.Random.Range(2f, 8f);
|
||||
src.PlayOneShot(noiseClips[noiseIndex]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user