|  |  | 
 |  |  |  | 
 |  |  |     public Action<string, BattleField> onBattleFieldCreate; | 
 |  |  |  | 
 |  |  |     public Action<string, BattleField> onBattleFieldDestroy; | 
 |  |  |     public Action onBattleFieldDestroy; | 
 |  |  |  | 
 |  |  |     public bool isWaitServerStory = false;  //主线等服务端回报 0425 | 
 |  |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |         GameObject.DestroyImmediate(battleField.battleRootNode.gameObject); | 
 |  |  |  | 
 |  |  |         onBattleFieldDestroy?.Invoke(battleField.guid, battleField); | 
 |  |  |         onBattleFieldDestroy?.Invoke(); | 
 |  |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |         } | 
 |  |  |         return false; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     // 获取当前正在显示的战斗场景名称,如果没有则返回空字符串 | 
 |  |  |     public string GetActiveBattleName() | 
 |  |  |     { | 
 |  |  |         foreach (var kvp in battleFields) | 
 |  |  |         { | 
 |  |  |             BattleField battleField = kvp.Value; | 
 |  |  |             if (battleField == null) | 
 |  |  |                 continue; | 
 |  |  |  | 
 |  |  |             var battleName = battleField.ToString(); | 
 |  |  |             if (BattleConst.battleNameToWinName.ContainsKey(battleName) | 
 |  |  |             && UIManager.Instance.IsOpened(BattleConst.battleNameToWinName[battleName])) | 
 |  |  |                 return battleName; | 
 |  |  |         } | 
 |  |  |         return ""; | 
 |  |  |     } | 
 |  |  | } |