AnimSoundEvent.cs 260 B

123456789101112
  1. using UnityEngine;
  2. using System.Collections;
  3. public class AnimSoundEvent : MonoBehaviour
  4. {
  5. public void PlaySound(string soundName)
  6. {
  7. if (string.IsNullOrEmpty(soundName)) return;
  8. MusicMgr.Instance.PlayFightSound(soundName);
  9. }
  10. }