private void OnTriggerLeft(AreaTrigger2DEvent arg) { if (arg.Collider.tag == "Player") { Left.InvokeSafe(this); _playerInArea = false; } }
private void OnTriggerEntered(AreaTrigger2DEvent arg) { if (arg.Collider.tag == "Player") { Entered.InvokeSafe(this); _playerInArea = true; } }