FairyGUI.GearXY.UpdateState C# (CSharp) Method

UpdateState() public method

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

            GearXYValue gv;
            if (!_storage.TryGetValue(_controller.selectedPageId, out gv))
                _storage[_controller.selectedPageId] = new GearXYValue(_owner.x, _owner.y);
            else
            {
                gv.x = _owner.x;
                gv.y = _owner.y;
            }
        }

Usage Example

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