How do i use Photon networking message ,Enum for OnjoinedRoom for start the game?
Options
How use Photon networking message onjoinedroom to begin the game, can i use delegate to do that?
0
Best Answer
-
Did you check PUN demos? If not please, take a look at their code to get a deeper understanding for Photon concepts.
To answer your question:
You just need a MonoBehaviour with OnJoinedRoom method attached to an active GameObject in the scene:using UnityEngine; public class MyScript : MonoBehaviour { void OnJoinedRoom(){ Debug.Log("Actor Joined"); } }
5
Answers
-
i didn't get it..can you explain it further ..please0
-
Did you check PUN demos? If not please, take a look at their code to get a deeper understanding for Photon concepts.
To answer your question:
You just need a MonoBehaviour with OnJoinedRoom method attached to an active GameObject in the scene:using UnityEngine; public class MyScript : MonoBehaviour { void OnJoinedRoom(){ Debug.Log("Actor Joined"); } }
5 -
Hey, JohnTube mod..thank you for you reply..i will try to implement the method..0