예제 #1
0
        public async void Initialize()
        {
            _songNum = new Random((int)DateTime.Now.Ticks).Next(0, 2) + 1;

            try
            {
                await _contentChest.Preload <Song>($"Music/MenuSong{_songNum}");
            }
            catch (Exception x)
            {
                // ignored
            }
        }
예제 #2
0
 public override void Initialize()
 {
     _contentChest.Preload <SoundEffect>("Sounds/menuHover");
     SetupUserInterface();
 }