[Header("Sounds")][Tooltip("Sound played when recieving damages")]publicAudioClip DamageTick;
挂上效果:
播放代码:
// play the damage tick soundif(DamageTick &&!m_WasDamagedThisFrame)
AudioUtility.CreateSFX(DamageTick, transform.position, AudioUtility.AudioGroups.DamageTick,0f);