public void CloseWindow(RectTransform rctTrans, bool enableButtons) //关闭窗口,同上 { windowed = false; //修改背景点击事件 onClickOrEsc.RemoveAllListeners(); onClickOrEsc.AddListener(DisplayWindow_Option); StopAllCoroutines(); if (enableButtons) { //启用触摸 tchScrn.EnableTouchMove(); tchScrn.EnableTouchControlView(); //启用所有按钮 StartCoroutine(EnableButtons()); } StartCoroutine(DisablePanel()); StartCoroutine(CloseWnd(rctTrans)); }
public void ExitChat() { player.canMove = true; //touch_Control.EnableTouchControlView(); touch_Control.EnableTouchMove(); Chat_Name.GetComponentInChildren <Text>().text = ""; Chat_Text.text = ""; StartCoroutine(HideTxtBx(chatItems[chatItems.Length - 1].dRight)); //收回横幅对话框 //StartCoroutine(HideChtHd(chatItems[chatItems.Length - 1].dRight)); StartCoroutine(ShowObj()); //显示对话按钮 //显示所有对话气泡 for (int i = 0; i < popTexts.Length; i++) { if (null == popTexts[i]) { continue; } popTexts[i].GetComponent <PopText>().ShowPop(); } index = 0; }