using UnityEngine; using System.Collections.Generic; using System.Collections; using System; // Integrated Air Defense System public class IADS : MonoBehaviour { public enum TargetStatus { UNASSIGNED, ASSIGNED, HIT, DEGRADED, DESTROYED } // Look up threat status by unique threat ID public Dictionary _targetStatusDictionary; private List _threats; private List _missiles; private List _vessels; public delegate void RegisterNewTargetDelegate(Threat threat); public event RegisterNewTargetDelegate OnRegisterNewTarget; void Start() { _threats = new List(); } public void RegisterNewTarget(Threat threat) { _threats.Add(threat); OnRegisterNewTarget?.Invoke(threat); } }