FairyGUI.GearDisplay.Apply C# (CSharp) Method

Apply() public method

public Apply ( ) : void
return void
        public override void Apply()
        {
            if (_controller == null || pages == null || pages.Length == 0 || Array.IndexOf(pages, _controller.selectedPageId) != -1)
                _owner.internalVisible++;
            else
                _owner.internalVisible = 0;
        }

Usage Example

 static public int Apply(IntPtr l)
 {
     try {
         FairyGUI.GearDisplay self = (FairyGUI.GearDisplay)checkSelf(l);
         self.Apply();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }