Ejemplo n.º 1
0
        private void OnTriggerExit(Collider other)
        {
            UnitHealth target = other.GetComponent <UnitHealth>();

            if (target != null)
            {
                targets.Remove(target);
            }
        }
Ejemplo n.º 2
0
        private void OnTriggerEnter(Collider other)
        {
            UnitHealth target = other.GetComponent <UnitHealth>();

            if (target != null)
            {
                targets.Add(target);
            }
        }