Audio refactor almost done
This commit is contained in:
@@ -13,7 +13,7 @@ public class soundBird_TakeOffBehaviour : MonoBehaviour
|
||||
private Animator animator;
|
||||
private TweenBase objectTween;
|
||||
|
||||
public AudioSource audioSource;
|
||||
public AppleAudioSource audioSource;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
@@ -29,7 +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();
|
||||
audioSource.Play(0);
|
||||
}
|
||||
void HandleTweenStarted()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user