Merge branch 'main' of https://gitea.deprived.dev/Sveskejuice/fgm24
This commit is contained in:
commit
875701c68e
|
@ -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:
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue