Exemplo n.º 1
0
    public override void OnJoinedRoom()
    {
        GameObject g = PhotonNetwork.Instantiate("Character", new Vector3(-5f, -3.25f, -45f), Quaternion.identity, 0);

        g.GetComponent <PlayerManager>().SetName(PhotonNetwork.NickName);

        /*if (PhotonNetwork.IsMasterClient)
         * {
         *  PhotonNetwork.Instantiate("Dolphin", Vector3.zero, Quaternion.identity, 0);
         * }*/

        loginPage.SetActive(false);
        characterMenu.SetActive(true);

        vivoxManager.JoinChannel(PhotonNetwork.CurrentRoom.Name);
    }
 public void Btn_Join_Channel()
 {
     credentials.JoinChannel(tmp_Input_ChannelName.text, true, true, true, ChannelType.NonPositional);
 }