static int ChangeRepeat(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.ChangeRepeat(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #2
0
        override protected void Enter(Controller controller)
        {
            Transition trans = controller.parent.GetTransition(transitionName);

            if (trans != null)
            {
                if (_currentTransition != null && _currentTransition.playing)
                {
                    trans.ChangeRepeat(repeat);
                }
                else
                {
                    trans.Play(repeat, delay, null);
                }
                _currentTransition = trans;
            }
        }