Worker and secretary audio
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
using Core.SaveLoad;
|
||||
using UnityEngine;
|
||||
using Pixelplacement;
|
||||
using Pixelplacement.TweenSystem;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Audio;
|
||||
|
||||
public class WorkerBeltApproachingBehaviour : AppleState
|
||||
{
|
||||
@@ -17,8 +18,14 @@ public class WorkerBeltApproachingBehaviour : AppleState
|
||||
private TweenBase aproachTween;
|
||||
public AppleMachine workerBeltStateMAchineRef;
|
||||
|
||||
public AppleAudioSource audioSource;
|
||||
public AudioResource approachAudio;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
audioSource.audioSource.resource = approachAudio;
|
||||
audioSource.Play(0);
|
||||
|
||||
// ensure roaming ref exists before accessing
|
||||
Transform anchorA = transform.Find("AnchorA");
|
||||
if (anchorA != null && workerBeltRoamingRef != null)
|
||||
|
||||
Reference in New Issue
Block a user