コード例 #1
0
    void Start()
    {
        lobby = PlayerClassInitLobbyManager.Instance;
        ShowMainPanel();
        lobbyPlayerName.onValueChanged.AddListener(name => { MockPlayer.LocalMockPlayer.PlayerName = name; });
        DontDestroyOnLoad(this.gameObject);

        lobby.StartMatchMaker();
    }
コード例 #2
0
    void Awake()
    {
        if (Instance != null)
        {
            Destroy(this.gameObject);
            Debug.Log("Destroyed this PlayerClassInitLobbyManagerObject because one already exists!");
            return;
        }

        Instance = this;

        /*this.matchHost = Host;
         * this.matchPort = Port;
         * this.StartClient();*/
    }