private async Task onBottleInteract(ObjectEventArgs args) { _bottleEffectClip.Play(); await _bottle.ChangeRoomAsync(null); _player.Inventory.Items.Add(InventoryItems.Bottle); }
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); }
private void onAfterFadeIn() { _music.Play(true); }