示例#1
0
 //Handler for the inbox button.
 public void OnInboxClicked()
 {
     if (processed)
     {
         return;
     }
     processed = true;
     RaceManager.AcceptFromInbox();
 }
    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();
        }
    }