Scroll() public method

If the object should support the scroll wheel, do it.
public Scroll ( float delta ) : void
delta float
return void
Beispiel #1
0
    /// <summary>
    /// Forward the scroll event to the draggable camera.
    /// </summary>

    void OnScroll(float delta)
    {
        if (enabled && NGUITools.GetActive(gameObject) && draggableCamera != null)
        {
            draggableCamera.Scroll(delta);
        }
    }
Beispiel #2
0
    /// <summary>
    /// Forward the scroll event to the draggable camera.
    /// </summary>

    void OnScroll(float delta)
    {
        if (enabled && gameObject.active && draggableCamera != null)
        {
            draggableCamera.Scroll(delta);
        }
    }
 private void OnScroll(float delta)
 {
     //IL_000c: Unknown result type (might be due to invalid IL or missing references)
     //IL_0011: Expected O, but got Unknown
     if (this.get_enabled() && NGUITools.GetActive(this.get_gameObject()) && draggableCamera != null)
     {
         draggableCamera.Scroll(delta);
     }
 }
Beispiel #4
0
    /// <summary>
    /// Forward the scroll event to the draggable camera.
    /// </summary>

    void OnScroll(float delta)
    {
                #pragma warning disable 0618
        if (enabled && gameObject.active && draggableCamera != null)
        {
            draggableCamera.Scroll(delta);
        }
                #pragma warning restore 0618
    }
    void OnScroll(float delta)
    {
        if (IsStopDrag)
        {
            return;
        }

        if (enabled && NGUITools.GetActive(gameObject) && Draggable != null)
        {
            Draggable.Scroll(delta);
        }
    }
Beispiel #6
0
 static public int Scroll(IntPtr l)
 {
     try {
         UIDraggableCamera self = (UIDraggableCamera)checkSelf(l);
         System.Single     a1;
         checkType(l, 2, out a1);
         self.Scroll(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }