public override void Apply() { _owner._gearLocked = true; GearAnimationValue gv; if (!_storage.TryGetValue(_controller.selectedPageId, out gv)) gv = _default; IAnimationGear mc = (IAnimationGear)_owner; mc.frame = gv.frame; mc.playing = gv.playing; _owner._gearLocked = false; }
static public int Apply(IntPtr l) { try { FairyGUI.GearAnimation self = (FairyGUI.GearAnimation)checkSelf(l); self.Apply(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }