FairyGUI.GearSize.UpdateState C# (CSharp) Method

UpdateState() public method

public UpdateState ( ) : void
return void
        public override void UpdateState()
        {
            if (_controller == null || _owner._gearLocked || _owner.underConstruct)
                return;

            GearSizeValue gv;
            if (!_storage.TryGetValue(_controller.selectedPageId, out gv))
                _storage[_controller.selectedPageId] = new GearSizeValue(_owner.width, _owner.height, _owner.scaleX, _owner.scaleY);
            else
            {
                gv.width = _owner.width;
                gv.height = _owner.height;
                gv.scaleX = _owner.scaleX;
                gv.scaleY = _owner.scaleY;
            }
        }

Usage Example

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