void OnTriggerExit2D(Collider2D other) { scr_EnemyAware controller = other.GetComponent <scr_EnemyAware>(); if (controller != null) { inRange = false; } }
void OnTriggerExit2D(Collider2D other) { scr_EnemyAware controller = other.GetComponent <scr_EnemyAware>(); }