Cucumberattack sound and anne lise shush

This commit is contained in:
journaliciouz
2025-10-20 21:23:18 +02:00
parent b7d7e5ae35
commit cb3aa515d1
9 changed files with 494 additions and 132 deletions

View File

@@ -1,6 +1,7 @@
using Pixelplacement;
using Pixelplacement.TweenSystem;
using UnityEngine;
using UnityEngine.Audio;
public class soundBird_TakeOffBehaviour : MonoBehaviour
{
@@ -12,6 +13,8 @@ public class soundBird_TakeOffBehaviour : MonoBehaviour
private Animator animator;
private TweenBase objectTween;
public AudioSource audioSource;
void Awake()
{
stateMachine = GetComponentInParent<StateMachine>();
@@ -26,6 +29,7 @@ public class soundBird_TakeOffBehaviour : MonoBehaviour
{
animator.SetBool("isScared", true);
objectTween = Tween.Spline(FlightSpline, SoundBirdObject, 0, 1, false, flightDuration, flightDelay, Tween.EaseIn, Tween.LoopType.None, HandleTweenStarted, HandleTweenFinished);
audioSource.Play();
}
void HandleTweenStarted()
{