idk tweaks
This commit is contained in:
parent
a5bb3c6864
commit
05a8e5fd3c
|
@ -589,6 +589,14 @@ PrefabInstance:
|
|||
propertyPath: MaxVibration
|
||||
value: 0.5
|
||||
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}
|
||||
propertyPath: otherPlayerAttack
|
||||
value:
|
||||
|
@ -691,6 +699,14 @@ PrefabInstance:
|
|||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 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}
|
||||
propertyPath: otherPlayerAttack
|
||||
value:
|
||||
|
|
|
@ -14,9 +14,9 @@ public class FootStepSounder : MonoBehaviour
|
|||
void Update()
|
||||
{
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue