IEnumerator HideRejection() { yield return(new WaitForSeconds(2)); RejectConvoB.SetActive(false); RequestSentConvoB.SetActive(false); }
public void ResetToStart() { LeaveConversation(); RequestConvoB.SetActive(false); InviteConvoB.SetActive(false); RequestSentConvoB.SetActive(false); }
public void SendChatRequest(string tempGroup, int otherPVID) { player.SendConversationRequest(tempGroup, otherPVID); RequestConvoB.SetActive(false); RequestSentConvoB.SetActive(true); Button cancelReqButton = RequestSentConvoB.transform.GetChild(1).GetChild(0).GetComponent <Button>(); cancelReqButton.onClick.RemoveAllListeners(); cancelReqButton.onClick.AddListener(() => { CancelRequestSent(tempGroup, otherPVID); }); }
public void ShowCurrentConversation(string currentMembersInGroup) { VoiceManager.GetComponent <SoundManager>().StartSpeaking(); InviteConvoB.SetActive(false); RequestConvoB.SetActive(false); RequestSentConvoB.SetActive(false); // string text = ""; // if (currentMembersInGroup.IndexOf(';') == -1) { // text = currentMembersInGroup; // } else { // string names = ""; // foreach(string name in currentMembersInGroup.Split(';')) { // names = "@" + name + ", " + names; // } // text = names; // } // CurrentGroupChat.transform.GetChild(1).GetChild(1).GetComponent<TMPro.TextMeshProUGUI>().text = "Currently in a group chat"; CurrentGroupChatBubble.SetActive(true); }
public void CancelRequestSent(string tempGroup, int otherPVID) { player.CancelRequestSent(tempGroup, otherPVID); RequestSentConvoB.SetActive(false); }