Tic Tac Toe Example Register - TogetherGames/Public-Unity-CSharp GitHub Wiki

The Register screen allows the user to select how the User should be registered.

The DisplayButtons() method displays a Facebook and Custom buttoon. When the Facebook button is pressed, the FacebookRegistration is displayed allowing the User to register via Facebook. When the Custom button is pressed, the CustomRegistration is displayed allowing the User to register via Custom registration.

void DisplayButtons()
{
    //Create and set the buttons
    if( GUI.Button(new Rect(10, 50, 100, 50), "Back"))
        Application.LoadLevel("MainMenu");
    if( GUI.Button(new Rect(10, 120, 150, 50), "Facebook"))
        Application.LoadLevel("FacebookRegistration");
    if( GUI.Button(new Rect(10, 180, 150, 50), "Custom"))
        Application.LoadLevel("CustomRegistration");
}