예제 #1
0
 protected virtual void OnEnable()
 {
     _selection = new WeightedRNG <BGMData>();
     if (backgroundMusicData == null)
     {
         return;
     }
     foreach (BGMData bgmData in backgroundMusicData)
     {
         bgmData.Initialize(Name);
         _selection[bgmData] = bgmData.Weight;
     }
 }
예제 #2
0
 protected virtual void OnEnable()
 {
     IsInitialized = false;
     _selection    = new WeightedRNG <BGMData>();
 }