Пример #1
0
    private void MoveOnInteract()
    {
        if (currentInteractable.isInteractable)
        {
            string txt = currentInteractable.GetPrimaryInteractText();

            if (txt == null)
            {
                return;
            }

            interactText.SetText(txt);
            LeanTween.scaleY(interactText.gameObject, 1, 0.1f);
            LeanTween.scale(outerCursor, Vector3.one * 1.5f, 0.1f);
            LeanTween.scale(toolTipBack, Vector3.one, 0.1f);
        }
    }