示例#1
0
    /// <summary>
    /// Create a plane on which we will be performing the dragging.
    /// </summary>

    void OnPress(bool pressed)
    {
        if (enabled && NGUITools.GetActive(gameObject) && draggablePanel != null)
        {
            draggablePanel.Press(pressed);
        }
    }
示例#2
0
    /// <summary>
    /// Create a plane on which we will be performing the dragging.
    /// </summary>

    void OnPress(bool pressed)
    {
        if (enabled && gameObject.active && draggablePanel != null)
        {
            draggablePanel.Press(pressed);
        }
    }
    /// <summary>
    /// Create a plane on which we will be performing the dragging.
    /// </summary>

    void OnPress(bool pressed)
    {
                #pragma warning disable 0618
        if (enabled && gameObject.active && draggablePanel != null)
        {
            draggablePanel.Press(pressed);
        }
                #pragma warning restore 0618
    }