This commit is contained in:
OliverS 2024-02-04 08:40:13 +01:00
commit 875701c68e
2 changed files with 18 additions and 2 deletions

View File

@ -593,6 +593,14 @@ PrefabInstance:
propertyPath: MaxVibration propertyPath: MaxVibration
value: 0.5 value: 0.5
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5150961666696654592, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3}
propertyPath: Volume
value: 0.25
objectReference: {fileID: 0}
- target: {fileID: 5150961666696654592, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3}
propertyPath: StepInterval
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7071433868121438663, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - target: {fileID: 7071433868121438663, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3}
propertyPath: otherPlayerAttack propertyPath: otherPlayerAttack
value: value:
@ -695,6 +703,14 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z propertyPath: m_LocalEulerAnglesHint.z
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 1691493459240420355, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3}
propertyPath: Volume
value: 0.25
objectReference: {fileID: 0}
- target: {fileID: 1691493459240420355, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3}
propertyPath: StepInterval
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1749848915408613053, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - target: {fileID: 1749848915408613053, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3}
propertyPath: otherPlayerAttack propertyPath: otherPlayerAttack
value: value:

View File

@ -14,9 +14,9 @@ public class FootStepSounder : MonoBehaviour
void Update() void Update()
{ {
movedDist += Vector3.Distance(transform.position, prevPos); movedDist += Vector3.Distance(transform.position, prevPos);
if (movedDist % StepInterval < 0.1f) if (movedDist % StepInterval < 0.2f)
{ {
AudioManager.PlaySound("Footstep_" + UnityEngine.Random.Range(1, 6), transform.position, true).volume = Volume; AudioManager.PlaySound("Footstep_" + UnityEngine.Random.Range(1, 6), transform.position).volume = Volume;
} }
prevPos = transform.position; prevPos = transform.position;