private void OnTriggerExit2D(Collider2D collision) { if (collision.transform.CompareTag("Pivot")) { _currentPivot = null; } }
private void OnTriggerStay2D(Collider2D collision) { if (collision.transform.CompareTag("Pivot")) { _currentPivot = collision.GetComponent <PivotDetail>(); } }