public void Connect() { if (gameListener != null) { gameListener.OnConnected(this); } }
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); }