コード例 #1
0
    /// <summary>
    ///
    /// </summary>
    void DrawUIGrabRing()
    {
        Vector2 clickedPosition = _stateMachine.GetMouseClickPosition();

        // Move the ring to the screen space position the mouse clicked at
        RectTransform ringRectTransform = grabRing.GetComponent <RectTransform>();

        ringRectTransform.anchoredPosition = clickedPosition;

        // Show the ring
        SetUILineVisibility(grabRing, true);
    }