22 lines
608 B
C#
22 lines
608 B
C#
using SLSUtilities.WwiseAssistance;
|
|
using UnityEngine;
|
|
using Event = AK.Wwise.Event;
|
|
|
|
namespace Cielonos.MainGame.Characters
|
|
{
|
|
public class AudioSubcontroller : SubcontrollerBase<CharacterBase>
|
|
{
|
|
public void PlayFootStepSound(AnimationEvent animationEvent)
|
|
{
|
|
if (animationEvent.animatorClipInfo.weight > 0.5f)
|
|
{
|
|
AudioManager.Post(AK.EVENTS.FOOTSTEP, owner.bodyPartsSc.footPoint.gameObject);
|
|
}
|
|
}
|
|
|
|
public void PlayDashSound()
|
|
{
|
|
AudioManager.Post(AK.EVENTS.DASH, owner.gameObject);
|
|
}
|
|
}
|
|
} |