- Home /
Question by
netherboss123 · Nov 03, 2015 at 05:42 PM ·
photonrpgmmo
Unity Photon Network Problem
HI! I am trying to make an MMORPG game with PUN free and I want to make it so when you press the "Play" button on the title screen, it connects to a server and loads the game level. this is the code I have and when I run it, nothing happens. please help me! using UnityEngine; using System.Collections;
public class JoinServer : MonoBehaviour {
void OnMouseDown() {
PhotonNetwork.ConnectUsingSettings ("v1.0");
}
void OnJoinedLobby(){
PhotonNetwork.JoinRoom ("Server");
}
void OnPhotonJoinFailed(){
PhotonNetwork.CreateRoom("Server");
PhotonNetwork.JoinRoom ("Server");
}
void OnJoinedRoom(){
Application.LoadLevel ("Test");
}
}
Comment
Your answer
Follow this Question
Related Questions
Bullet on network 1 Answer
RPG controller 1 Answer
Unity3D Multiplayer with Photon 1 Answer
MMO Server backend: Smartfox or Photon 2 Answers
Photon Unity Networking (Viking Demo) Error: Argument is out of range. 1 Answer