Beispiel #1
0
        IEnumerator HideRejection()
        {
            yield return(new WaitForSeconds(2));

            RejectConvoB.SetActive(false);
            RequestSentConvoB.SetActive(false);
        }
Beispiel #2
0
 public void ResetToStart()
 {
     LeaveConversation();
     RequestConvoB.SetActive(false);
     InviteConvoB.SetActive(false);
     RequestSentConvoB.SetActive(false);
 }
Beispiel #3
0
        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); });
        }
Beispiel #4
0
 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);
 }
Beispiel #5
0
 public void CancelRequestSent(string tempGroup, int otherPVID)
 {
     player.CancelRequestSent(tempGroup, otherPVID);
     RequestSentConvoB.SetActive(false);
 }