コード例 #1
0
 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));
     }
 }
コード例 #2
0
        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;
            }
        }