private void OnTriggerExit2D(Collider2D other) { var component = other.GetComponent <T>(); if (component != null) { Exited.SafeInvoke(component); } }
private void OnProfiledProcessExited(object sender, EventArgs e) { lock (Lock) { if (_process != null) { Exited.SafeInvoke(this, EventArgs.Empty); _process.Exited -= OnProfiledProcessExited; _process = null; } } }