void OnMouseDown() { if (!dragEnabled) { return; } dragManager.StartDragging(this); SetScale(1.3f); }
void OnMouseDown() { if (GlobalUI.PauseMenu.IsMenuOpen) { return; } if (!dragEnabled) { return; } dragManager.StartDragging(this); SetScale(1.3f); }
Vector3 origin; // Memorize starting position for going back void OnMouseDown() { if (!dragEnabled) { return; } // If I place an LL above another one, then the other one should fall down // So when I click a LL that is linked I keep its original position if (GetLinkedPlaceholder() == null) { origin = transform.localPosition; } dragManager.StartDragging(this); GetComponent <StillLetterBox>().Grabbed(); }