Move fracture voice from Shose click to Point2 click

This commit is contained in:
yangbear
2026-07-11 05:28:03 +08:00
parent 688b4b29fc
commit b18d28fc40
2 changed files with 11 additions and 9 deletions
@@ -72,6 +72,16 @@ public class Point2ClickHandler : MonoBehaviour
}
}
// 播放语音
var am = FindObjectOfType<AudioManager>();
if (am != null)
{
#if UNITY_EDITOR
var fractureClip = UnityEditor.AssetDatabase.LoadAssetAtPath<AudioClip>("Assets/Audio/people/伤员左大腿疑似骨折,无伤口.mp3");
if (fractureClip != null) am.PlayVoice(fractureClip);
#endif
}
if (nextObject != null)
{
var shoseHandler = nextObject.GetComponent<ShoseClickHandler>();