示例#1
0
 void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
         DontDestroyOnLoad(this.gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }
示例#2
0
 public void PlayBattleAudio(BattleAudio a)
 {
     audio.PlayOneShot(battleAudioClips[(int)a]);
 }