コード例 #1
0
 private void Awake()
 {
     if (!instance)
     {
         instance = this;
     }
     if (instance != this)
     {
         Destroy(gameObject);
     }
     else
     {
         Music.volume = _initialMusicVolume;
         Sfx.SetVolume(_sfxVolume);
         Sfx.LoadCategories(_sfxClipsPerCategory);
     }
 }