FairyGUI.LongPressGesture.Enable C# (CSharp) Method

Enable() public method

public Enable ( bool value ) : void
value bool
return void
        public void Enable(bool value)
        {
            if (value)
            {
                _host.onTouchBegin.Add(__touchBegin);
                _host.onTouchEnd.Add(__touchEnd);
            }
            else
            {
                _host.onTouchBegin.Remove(__touchBegin);
                _host.onTouchEnd.Remove(__touchBegin);
                Timers.inst.Remove(__timer);
            }
        }

Usage Example

 static public int Enable(IntPtr l)
 {
     try {
         FairyGUI.LongPressGesture self = (FairyGUI.LongPressGesture)checkSelf(l);
         System.Boolean            a1;
         checkType(l, 2, out a1);
         self.Enable(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.LongPressGesture::Enable