浏览代码

Added sing short and long to NPC Audio script

/main
Amel 4 年前
当前提交
1b6ed150
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 5
      UOP1_Project/Assets/NPCAudio.cs

5
UOP1_Project/Assets/NPCAudio.cs


public class NPCAudio : CharacterAudio
{
[SerializeField] private AudioCueSO idleSound, talk, footstep;
[SerializeField] private AudioCueSO singShort, singLong, talk, footstep;
public void PlayIdle() => _sfxEventChannel.RaisePlayEvent(idleSound, _audioConfig, transform.position);
public void PlaySingShort() => _sfxEventChannel.RaisePlayEvent(singShort, _audioConfig, transform.position);
public void PlaySingLong() => _sfxEventChannel.RaisePlayEvent(singLong, _audioConfig, transform.position);
}
正在加载...
取消
保存