Spatial lawnmower audio implemented

This commit is contained in:
2025-10-20 16:21:32 +02:00
parent b49bb43f79
commit c07f64ea4f
16 changed files with 884 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ public class LawnMowerChaseBehaviour : MonoBehaviour
public GameObject gardenerRef = null;
public Animator gardenerAnimator = null;
public bool gardenerChasing = true;
public GardenerAudioController gardenerAudioController;
void Start()
{
@@ -28,6 +29,7 @@ public class LawnMowerChaseBehaviour : MonoBehaviour
float distanceToStart = Mathf.Abs(startPercentage - 0f);
float distanceToEnd = Mathf.Abs(startPercentage - 1f);
gardenerAudioController.StartMowerSound();
if (distanceToStart < distanceToEnd)
{