示例#1
0
 void Awake()
 {
     DontDestroyOnLoad(this);
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
 /// <summary>
 /// Fires the audio start event
 /// </summary>
 private void FireAudioStart()
 {
     AudioStart?.Invoke(this, new GameAudioEventArgs());
 }