//播放特效 void PlayFinishVedio(UInt64 ObjID) { BlGame.AudioManager.Instance.StopHeroAudio(); GameTimeData.Instance.EndCountTime(); ProgressBarInterface.hideProgressBar(); //UIPlay.OpenUIPlay(false); //if (UIDeathInterface.Instance != null) //{ // GameObject.DestroyImmediate(UIDeathInterface.Instance.gameObject); //} DeathCtrl.Instance.Exit(); Iselfplayer player = PlayerManager.Instance.LocalPlayer; if (player != null) { player.RemoveRuinWarning(); } GameMethod.CreateWindow(GameConstDefine.GameOverBoxPath, Vector3.zero, GameMethod.GetUiCamera.transform); if (Camera.main != null && Camera.main.gameObject != null) { Camera.main.gameObject.AddComponent <BaseDaBomb>(); } GameMethod.GetMainCamera.target = null; GameMethod.GetMainCamera.enabled = false; //ToReview wincamp没用上 UInt64 sGUID; sGUID = ObjID; Ientity entity = EntityManager.Instance.GetEntity(sGUID); for (int i = EntityManager.AllEntitys.Count - 1; i >= 0; i--) { var item = EntityManager.AllEntitys.ElementAt(i); if (item.Value.RealEntity != null) { item.Value.RealEntity.PlayerFreeAnimation(); item.Value.RealEntity.SyncEntity = null; item.Value.RealEntity.enabled = false; } if (item.Value.entityType == EntityType.Player || item.Value.entityType == EntityType.Building) { continue; } EntityManager.AllEntitys.Remove(item.Key); } if (entity != null) { BaseDaBomb.Instance.SetBaseBomb(true, entity, GameUserModel.Instance.GameMapID); //ToReview int->uint } AltarData.Instance.DelAllAltar(); BattleingData.Instance.ClearAllGoods(); BattleingData.Instance.ClearAllBattleData(); }
IEnumerator ShakeLabel() { mPlayEffect = GameMethod.CreateWindow(GameConstDefine.LoadGameLoginEffectPath, new Vector3(-5, -270, 0), mRoot.transform); mPlaySubmitBtn.gameObject.SetActive(false); yield return(new WaitForSeconds(1.4f)); }