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();
        }
    }
Exemplo n.º 2
0
 //Handler for the send initation button.
 public void OnInvite()
 {
     RaceManager.CreateWithInvitationScreen();
 }