static int ChangePlayTimes(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FairyGUI.Transition obj = (FairyGUI.Transition)ToLua.CheckObject <FairyGUI.Transition>(L, 1); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.ChangePlayTimes(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
override protected void Enter(Controller controller) { Transition trans = controller.parent.GetTransition(transitionName); if (trans != null) { if (_currentTransition != null && _currentTransition.playing) { trans.ChangePlayTimes(playTimes); } else { trans.Play(playTimes, delay, null); } _currentTransition = trans; } }