Beispiel #1
0
    void Awake()
    {
        SP = this;

        playerNameInput = PlayerPrefs.GetString("playerName" + Application.platform, "");
        requirePlayerName = true;

        joinMenuScript = GetComponent<Example3_Menu_Join>();
        gameLobbyScript = GetComponent<Example3_Menu_Lobby>();
        multiplayerScript = GetComponent<Example3_Menu_Multiplayer>();

        OpenMenu("multiplayer");

        PhotonNetwork.ConnectUsingSettings("1.0");
    }
Beispiel #2
0
 void Awake()
 {
     SP = this;
     showMenu = false;
 }