Raccoon animation and scene changes #415
|
@ -1,4 +1,5 @@
|
|||
using SHADE;
|
||||
using SHADE_Scripting.Audio;
|
||||
using System;
|
||||
|
||||
public class PlayerRunState : BaseState
|
||||
|
@ -26,7 +27,7 @@ public class PlayerRunState : BaseState
|
|||
|
||||
if (timer > delay)
|
||||
{
|
||||
Audio.PlaySFXOnce2D("event:/Raccoon/raccoon_footsteps");
|
||||
AudioHandler.audioClipHandlers["footsteps"].Play();
|
||||
timer = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using SHADE;
|
||||
using SHADE_Scripting.Audio;
|
||||
using System;
|
||||
|
||||
public class PlayerWalkState : BaseState
|
||||
|
@ -40,7 +41,7 @@ public class PlayerWalkState : BaseState
|
|||
|
||||
if (timer > delay)
|
||||
{
|
||||
Audio.PlaySFXOnce2D("event:/Raccoon/raccoon_footsteps");
|
||||
AudioHandler.audioClipHandlers["footsteps"].Play();
|
||||
timer = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
using SHADE;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using SHADE_Scripting.Audio;
|
||||
using static Item;
|
||||
|
||||
public class PlayerController : Script
|
||||
|
@ -131,6 +132,8 @@ public class PlayerController : Script
|
|||
silhouetteBagRend = silhouetteBag.GetComponent<Renderable>();
|
||||
silhouetteBagRend.Material.SetProperty<float>("data.offset", 0.1f);
|
||||
}
|
||||
|
||||
AudioHandler.audioClipHandlers["footsteps"] = Audio.CreateAudioClip("event:/Raccoon/raccoon_footsteps");
|
||||
}
|
||||
|
||||
protected override void start()
|
||||
|
|
Loading…
Reference in New Issue