void OnLeftRoom() { PhotonNetwork.LoadLevel("Lobby"); }
public override void OnConnectedToMaster() { Debug.Log("Connected to master"); PhotonNetwork.JoinLobby(); PhotonNetwork.AutomaticallySyncScene = true; }
public void JoinLobby() { PhotonNetwork.JoinRoom("Test7"); }
void OnMasterClientSwitched(Player newMasterClient) { PhotonNetwork.LeaveRoom(); }
private void CreatePlayer() { PhotonNetwork.Instantiate(Path.Combine("PhotonPrefabs", "PhotonNetworkPlayerModel"), transform.position, Quaternion.identity, 0); }
public void OnClickLeaveRoom() { MenuManager.Instance.ChangeCanvas(1); PhotonNetwork.LeaveRoom(); }
public override void OnConnectedToMaster() { Debug.Log("Connected to Master"); PhotonNetwork.JoinLobby(); }
public override void OnEnable() { base.OnEnable(); PhotonNetwork.AddCallbackTarget(this); SceneManager.sceneLoaded += OnSceneFinishedLoading; }
public void CriaSala() { PhotonNetwork.JoinOrCreateRoom(nomeSala.text, new RoomOptions(), TypedLobby.Default); }
public override void OnConnectedToMaster() { PhotonNetwork.JoinLobby(); txtNick.text = PhotonNetwork.NickName; }
public void LeaveRoom() { PhotonNetwork.LeaveRoom(); }
public override void SetTrap() { newMine = PhotonNetwork.Instantiate(minePrefab.name, transform.position, Quaternion.identity); mineClas = newMine.GetComponent <Mine>(); mineClas.SetTheTag(gameObject.tag); }
public void LeaveLobby() { PhotonNetwork.LeaveRoom(); MainMenu.Open(); }
public override void OnConnectedToMaster() { PhotonNetwork.JoinRandomRoom(); }
void OnClick() { Debug.Log(InputToEvent.inputHitPos); ga = PhotonNetwork.Instantiate(prefab.name, InputToEvent.inputHitPos, Quaternion.identity, 0); }
public void RPC_CreatePlayer() { float randomValue = Random.Range(0f, 15f); PhotonNetwork.Instantiate(Path.Combine("Prefabs", "NewPlayer"), Vector3.up * randomValue, Quaternion.identity, 0); }
public override void OnDisable() { PhotonNetwork.RemoveCallbackTarget(this); }
public override void OnDisable() { base.OnDisable(); PhotonNetwork.RemoveCallbackTarget(this); SceneManager.sceneLoaded -= OnSceneFinishedLoading; }
public override void OnEnable() { PhotonNetwork.AddCallbackTarget(this); }
public void JoinRoom() { joinButton.SetActive(false); PhotonNetwork.JoinRandomRoom(); print("Trying to join a room ..."); }
// below, we implement some callbacks of PUN // you can find PUN's callbacks in the class PunBehaviour or in enum PhotonNetworkingMessage public virtual void OnConnectedToMaster() { Debug.Log("OnConnectedToMaster() was called by PUN. Now this client is connected and could join a room. Calling: PhotonNetwork.JoinRandomRoom();"); PhotonNetwork.JoinRandomRoom(); }
public override void OnMasterClientSwitched(PhotonPlayer newMasterClient) { PlayerLeftRoom(newMasterClient); PhotonNetwork.LeaveRoom(); }
public virtual void OnJoinedLobby() { Debug.Log("OnJoinedLobby(). This client is connected and does get a room-list, which gets stored as PhotonNetwork.GetRoomList(). This script now calls: PhotonNetwork.JoinRandomRoom();"); PhotonNetwork.JoinRandomRoom(); }
public void CreateLobby() { PhotonNetwork.CreateRoom("Test7"); //, true, true, 2); }
// Use this for initialization void Start() { PhotonNetwork.ConnectUsingSettings("0.1"); PhotonNetwork.logLevel = PhotonLogLevel.Full; }
public void BackToLooby() { PhotonNetwork.LeaveRoom(); }
/// <summary>Called by Unity when the application is closed. Tries to disconnect.</summary> protected void OnApplicationQuit() { PhotonHandler.AppQuits = true; PhotonHandler.StopFallbackSendAckThread(); PhotonNetwork.Disconnect(); }
/** * Description: */ private void OnButtonLeaveClicked() { PhotonNetwork.LeaveRoom(); Open(_menuRoomBrowser); }
private void RPC_LoadGameOthersLevel7() { PhotonNetwork.LoadLevel(11); }
public void randomButtons { PhotonNetwork.g
public void CreatePlayer() { PhotonNetwork.ConnectUsingSettings("1"); }