private IEnumerator delayShowTeamACE() { // 延迟显示 yield return(new WaitForSeconds(1f)); Debug.Log("OnTeamACE"); if (m_EffectParam != null) { UEffectManager.Instance.DestroyEffect(UEffectType.UET_EffectPrefab, ref m_EffectParam); m_EffectParam = null; } SWar2ViewMsgAce aceInfo = LogicDataCenter.recordTableDataManager.SelfCampACE; UGradient gradient = aceRankText.GetComponent <UGradient>(); gradient.enabled = false; if (aceInfo.isWin > 0) { m_EffectParam = new UEffectPrefabParam( _eType: UEffectPrefabType.UEPT_EndOfBattleWar_Win, _tfAttachParent: AceFrame.transform, _bAutoDestroy: false); UEffectManager.Instance.CreateEffect(UEffectType.UET_EffectPrefab, ref m_EffectParam); exitWarSuccessBtn.gameObject.SetActive(true); exitWarFailBtn.gameObject.SetActive(false); aceTitleText.text = "“大吉大利,今晚吃鸡!”\n"; gradient.SetGradientColorKey(new Color32(0xea, 0xb8, 0x30, 0xff), new Color32(0xff, 0xff, 0xff, 0xff)); } else { m_EffectParam = new UEffectPrefabParam( _eType: UEffectPrefabType.UEPT_EndOfBattleWar_Failure, _tfAttachParent: AceFrame.transform, _bAutoDestroy: false); UEffectManager.Instance.CreateEffect(UEffectType.UET_EffectPrefab, ref m_EffectParam); exitWarSuccessBtn.gameObject.SetActive(false); exitWarFailBtn.gameObject.SetActive(true); aceTitleText.text = "“再接再厉,早日吃鸡!”"; gradient.SetGradientColorKey(new Color32(0x7f, 0x9e, 0xb6, 0xff), new Color32(0xff, 0xff, 0xff, 0xff)); } DeadFrame.SetActive(false); AceFrame.SetActive(true); gradient.enabled = true; WarRecordTableDataManager.WarPersonInfo personInfo = LogicDataCenter.recordTableDataManager.getWarPersonInfoByPDBID((ulong)LogicDataCenter.playerSystemDataManager.SelfAcotrID); aceKDAText.text = string.Format("淘汰人数:{0}人, 助攻次数:{1}次", personInfo.nKillNum, personInfo.nAssists); aceRankText.text = string.Format("第{0}名", LogicDataCenter.recordTableDataManager.SelfCampACE.nRank); }