Esempio n. 1
0
        void OnMouseDown()
        {
            if (!dragEnabled)
            {
                return;
            }

            dragManager.StartDragging(this);
            SetScale(1.3f);
        }
Esempio n. 2
0
        void OnMouseDown()
        {
            if (GlobalUI.PauseMenu.IsMenuOpen)
            {
                return;
            }
            if (!dragEnabled)
            {
                return;
            }

            dragManager.StartDragging(this);
            SetScale(1.3f);
        }
Esempio n. 3
0
        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();
        }