Пример #1
0
        private async Task onBottleInteract(ObjectEventArgs args)
        {
            _bottleEffectClip.Play();
            await _bottle.ChangeRoomAsync(null);

            _player.Inventory.Items.Add(InventoryItems.Bottle);
        }
Пример #2
0
        private void onLoad()
        {
            /* TODO:
             * FadeOut(0);
             * StopAllAudio();
             */

            RaceUI.Init(_game);

            RaceEventConfig cfg = LF.Menu.RaceConfig;

            cfg.PlayerDriver = -1;                          // no player
            cfg.Opponents    = LF.RaceAssets.Drivers.Count; // max drivers
            cfg.Laps         = 0;                           // drive forever
            setupAIRace(cfg);
            _music.Play(true);

            GameStateManager.PushState(this);
        }
Пример #3
0
 private void onAfterFadeIn()
 {
     _music.Play(true);
 }