public void EnterToDefaultMode(SelectDefaultMatchMakingModeEvent e, Node any)
 {
     if (e.DefaultMode.IsPresent())
     {
         base.ScheduleEvent <SaveBattleModeEvent>(e.DefaultMode.Get());
         base.ScheduleEvent(new UserEnterToMatchMakingEvent(), e.DefaultMode.Get());
     }
 }
        public void ShowGameModeSelect(ButtonClickEvent e, PlayButtonViewSystem.NormalStateNode playButton, [JoinAll] ButtonNode button, [JoinAll] Optional <SingleNode <RankedBattleGUIComponent> > rankedModeButton)
        {
            SelectDefaultMatchMakingModeEvent eventInstance = new SelectDefaultMatchMakingModeEvent();

            base.ScheduleEvent(eventInstance, playButton);
            playButton.playButton.SearchingDefaultGameMode = eventInstance.DefaultMode.IsPresent();
            if (eventInstance.DefaultMode.IsPresent())
            {
                button.esm.Esm.ChangeState <PlayButtonStates.SearchingState>();
                string name = eventInstance.DefaultMode.Get().GetComponent <DescriptionItemComponent>().Name;
                MainScreenComponent.Instance.ShowMatchSearching(name);
            }
            else if (rankedModeButton.IsPresent())
            {
                rankedModeButton.Get().component.Click();
            }
            else
            {
                MainScreenComponent.Instance.ShowOrHideScreen(MainScreenComponent.MainScreens.PlayScreen, true);
            }
        }
 public void SelectDefaultMode(SelectDefaultMatchMakingModeEvent e, Node any, [JoinAll] SelfUserNode selfUser, [JoinAll] ICollection <MatchMakingDefaultModeNode> modes)
 {
     if (< > f__am$cache0 == null)
     {