예제 #1
0
 //Handler for the Quick Match button.
 public void OnQuickMatch()
 {
     if (processed)
     {
         return;
     }
     processed = true;
     RaceManager.CreateQuickGame();
 }
    protected override void DoGUI()
    {
        GuiLabel(TitleCfg);

        if (GuiButton(QuickMatchCfg))
        {
            RaceManager.CreateQuickGame();
            gameObject.GetComponent <RaceGui>().MakeActive();
        }
        else if (GuiButton(InviteCfg))
        {
            RaceManager.CreateWithInvitationScreen();
            gameObject.GetComponent <RaceGui>().MakeActive();
        }
        else if (GuiButton(InboxCfg))
        {
            RaceManager.AcceptFromInbox();
            gameObject.GetComponent <RaceGui>().MakeActive();
        }
        else if (GuiButton(SignOutCfg))
        {
            DoSignOut();
        }
    }