Пример #1
0
 public void Connect()
 {
     if (gameListener != null)
     {
         gameListener.OnConnected(this);
     }
 }
Пример #2
0
 public virtual void OnConnectedToMaster()
 {
     Debug.Log("OnConnectedToMaster() was called by PUN. Now this client is connected and could join a room. Calling: PhotonNetwork.JoinRandomRoom();");
     gameListener.OnConnected(this);
 }