public void Join(string roomName) { _callAppUi.uAudioToggle.isOn = true; _callAppUi.uVideoToggle.isOn = true; _callAppUi.uRoomNameInputField.text = roomName; _callAppUi.JoinButtonPressed(); _callAppUi.Fullscreen(); _customWebRtcRestManager.SimplePostRequest(_uri + roomName); }
public void Join() { _callAppUi.uAudioToggle.isOn = true; _callAppUi.uVideoToggle.isOn = false; _callAppUi.uRoomNameInputField.text = _roomName; _callAppUi.JoinButtonPressed(); _callAppUi.Fullscreen(); _customWebRtcRestManager.SimpleDeleteRequest(_uri + _roomName); }
private void OnTriggerEnter(Collider other) { // get local player name and check access if (!runOnce && other.tag == "LocalPlayer") { userName = other.gameObject.GetComponentInChildren <TextMesh>().text; print(userName); CheckAccess(); runOnce = true; } //private if (pri) { if (other.tag == "NetworkPlayer") { other.gameObject.GetComponent <PlayerManager>().HidePlayer(true); } } //personal if (per) { //not awu but see awu and awu friend if (userName != "Awu" && userName != "awu" && userName != "friend" && userName != "kwu" && userName != "Kwu") { other.gameObject.GetComponent <PlayerManager>().HidePlayer(true); } else { other.gameObject.GetComponent <PlayerManager>().HidePlayer(false); } } //public if (pub) { if (other.tag == "NetworkPlayer") { other.gameObject.GetComponent <PlayerManager>().HidePlayer(false); } } //cinema if (cin) { if (other.tag == "LocalPlayer") { if (cinemaSpace.activeSelf) { cinemaSpace.SetActive(false); publicSpace[0].SetActive(true); } else { cinemaSpace.SetActive(true); publicSpace[0].SetActive(false); } } } //event if (evt) { if (other.tag == "LocalPlayer") { print("collided"); if (!kSwitch) { for (int i = 0; i < eventSpace.Length; i++) { eventSpace[i].SetActive(true); } for (int i = 0; i < privateSpace.Length; i++) { privateSpace[i].SetActive(false); } kSwitch = true; } else { for (int i = 0; i < eventSpace.Length; i++) { eventSpace[i].SetActive(false); } for (int i = 0; i < privateSpace.Length; i++) { privateSpace[i].SetActive(true); } kSwitch = false; } } } if (call && other.tag == "LocalPlayer" && !callApp.activeSelf && !conferenceApp.activeSelf && callScript.uRoomNameInputField.text != name) { callApp.SetActive(true); callScript.uRoomNameInputField.text = name; callScript.JoinButtonPressed(); } if (con && other.tag == "LocalPlayer" && !callApp.activeSelf && !conferenceApp.activeSelf) { conferenceApp.SetActive(true); conScript.uRoomName.text = name; conScript.Joined(); } }