AutoPlaySound.cs 209 B

123456789101112
  1. using UnityEngine;
  2. using System.Collections;
  3. public class AutoPlaySound : MonoBehaviour {
  4. public string soundName;
  5. void OnEnable()
  6. {
  7. MusicMgr.Instance.PlayFightSound(soundName);
  8. }
  9. }