| 1234567891011121314151617181920212223242526272829303132333435363738 | 
							- using UnityEngine;
 
- using Utility;
 
- namespace GameLogic.CombatScenesTool
 
- {
 
-     public class CombatAlertManager : Singleton<CombatAlertManager>
 
-     {
 
-         public BetterList<AlertBuffer> alertList = new BetterList<AlertBuffer>();
 
-         public class AlertBuffer
 
-         {
 
-             public GameObject GameObject;
 
-             public Collider realCollider;
 
-             public CombatHeroEntity targetEntity;
 
-         }
 
-         public void AddAlert(GameObject gameObject, CombatHeroEntity targetEntity)
 
-         {
 
-             AlertBuffer alertBuffer = new AlertBuffer();
 
-             alertBuffer.GameObject = gameObject;
 
-             alertBuffer.realCollider = gameObject.GetComponent<Collider>();
 
-             alertBuffer.targetEntity = targetEntity;
 
-             alertList.Add(alertBuffer);
 
-         }
 
-         public void RemoveAlert(GameObject gameObject)
 
-         {
 
-             for (int i = 0; i < alertList.Count; i++)
 
-             {
 
-                 if (alertList[i].GameObject == gameObject)
 
-                 {
 
-                     alertList.RemoveAt(i);
 
-                     return;
 
-                 }
 
-             }
 
-         }
 
-     }
 
- }
 
 
  |