/// <summary> /// 播放关闭窗口动作,并移除窗口 /// </summary> /// <returns></returns> private IEnumerator PlayCloseEffect() { //View.viewRoot.GetComponent<Animator>().Play("MatchResultClose",0,0); //UIManager.Instance.HideUI(UIViewID.MATCH_RESULT_VIEW); yield return(new WaitForSeconds(0.4f)); foreach (MatchResultPlayerItem matchResultPlayerItem in View.playerItems) { matchResultPlayerItem.SaveAllCard(); } if (View.actEffect != null) { GameObject.Destroy(View.actEffect); View.actEffect = null; } if (battleProxy.roomResultS2C != null)//最后一局 { UIManager.Instance.HideUI(UIViewID.MATCH_RESULT_VIEW, ShowRoomResult); } else { ApplicationFacade.Instance.SendNotification(NotificationConstant.READY_NEXT); battleProxy.AddInnings(); var readyC2S = new ReadyC2S(); NetMgr.Instance.SendBuff(SocketType.BATTLE, MsgNoC2S.C2S_ROOM_READY.GetHashCode(), 0, readyC2S); UIManager.Instance.HideUI(UIViewID.MATCH_RESULT_VIEW); } }