private void DetectCurrentNode() { Collider2D[] nodes = Physics2D.OverlapBoxAll(transform.position, new Vector2(0.6f, 0.6f), 0, LayerMask); m_currentNode = MovementHelper.GetClosestNode(transform, nodes); }