Exemplo n.º 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;
     }
 }
Exemplo n.º 2
0
 protected virtual void OnEnable()
 {
     IsInitialized = false;
     _selection    = new WeightedRNG <BGMData>();
 }