|
@@ -156,13 +156,20 @@ public class ArrowSync : MonoBehaviour
|
|
|
if (isHit && !hasPlayHitAudio) {
|
|
if (isHit && !hasPlayHitAudio) {
|
|
|
hasPlayHitAudio = true;
|
|
hasPlayHitAudio = true;
|
|
|
int hitType = syncData.ht;
|
|
int hitType = syncData.ht;
|
|
|
- if (hitType == 1 || hitType == 2) {
|
|
|
|
|
|
|
+ if (hitType == Arrow.HitType.TargetInRing || hitType == Arrow.HitType.TargetOutRing) {
|
|
|
AudioMgr.ins.PlayHit(AudioMgr.GetAudioSource(TargetBody.ins.gameObject));
|
|
AudioMgr.ins.PlayHit(AudioMgr.GetAudioSource(TargetBody.ins.gameObject));
|
|
|
- AudioMgr.ins.PlayCheer(hitType == 1 ? true : false);
|
|
|
|
|
- } else if (hitType == 4 || hitType == 5) {
|
|
|
|
|
|
|
+ //AudioMgr.ins.PlayCheer(hitType == 1 ? true : false);
|
|
|
|
|
+ } else if (hitType == Arrow.HitType.Animal) {
|
|
|
AudioMgr.ins.PlayArrowEnter();
|
|
AudioMgr.ins.PlayArrowEnter();
|
|
|
- } else if (hitType == 3) {
|
|
|
|
|
- AudioMgr.ins.PlayCheer(false);
|
|
|
|
|
|
|
+ } else if (hitType == Arrow.HitType.NotTarget) {
|
|
|
|
|
+ if (UnityEngine.SceneManagement.SceneManager.GetActiveScene().name == "Game")
|
|
|
|
|
+ {
|
|
|
|
|
+ AudioMgr.ins.PlayCheer(false);
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ AudioMgr.ins.PlayArrowEnter();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (isHit && !hasPlayHitEffect) {
|
|
if (isHit && !hasPlayHitEffect) {
|