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