Credits and Transition done #454
|
@ -83,6 +83,9 @@ namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework
|
||||||
AudioHandler.audioClipHandlers["HO_bark"] = SHADE.Audio.CreateAudioClip("event:/Homeowner/homeowner_bark");
|
AudioHandler.audioClipHandlers["HO_bark"] = SHADE.Audio.CreateAudioClip("event:/Homeowner/homeowner_bark");
|
||||||
SHADE.Audio.AttachAudioClipToObject(AudioHandler.audioClipHandlers["HO_bark"], GameObject.EntityId);
|
SHADE.Audio.AttachAudioClipToObject(AudioHandler.audioClipHandlers["HO_bark"], GameObject.EntityId);
|
||||||
|
|
||||||
|
AudioHandler.audioClipHandlers["HO_humming"] = SHADE.Audio.CreateAudioClip("event:/Homeowner/homeowner_humming");
|
||||||
|
SHADE.Audio.AttachAudioClipToObject(AudioHandler.audioClipHandlers["HO_humming"], GameObject.EntityId);
|
||||||
|
|
||||||
patrolPointPool = patrolPointParent.GetComponentsInChildren<Transform>();
|
patrolPointPool = patrolPointParent.GetComponentsInChildren<Transform>();
|
||||||
pppList = patrolPointPool.ToList<Transform>();
|
pppList = patrolPointPool.ToList<Transform>();
|
||||||
transform = GetComponent<Transform>();
|
transform = GetComponent<Transform>();
|
||||||
|
|
|
@ -50,6 +50,7 @@ namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework.States
|
||||||
|
|
||||||
animator.Play(ai.walkingAnim);
|
animator.Play(ai.walkingAnim);
|
||||||
AudioHandler.audioClipHandlers["HO_footsteps"].Play();
|
AudioHandler.audioClipHandlers["HO_footsteps"].Play();
|
||||||
|
AudioHandler.audioClipHandlers["HO_humming"].Play();
|
||||||
footStepTimer = footStepInterval;
|
footStepTimer = footStepInterval;
|
||||||
|
|
||||||
|
|
||||||
|
@ -64,6 +65,7 @@ namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework.States
|
||||||
public override void OnExit()
|
public override void OnExit()
|
||||||
{
|
{
|
||||||
animator.Stop();
|
animator.Stop();
|
||||||
|
AudioHandler.audioClipHandlers["HO_humming"].Stop(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void update()
|
public override void update()
|
||||||
|
|
Loading…
Reference in New Issue