示例#1
0
        //开始,如果结束那么返回true
        public void Start()
        {
            Clear();
            m_beginTime = Now;

            HandleSequence seqHandle = null;

            if (CurHandle != null)
            {
                if (_type == Type.sequence)
                {
                    seqHandle = CurHandle as HandleSequence;
                    seqHandle.Start(this);
                }
                else
                {
                    CurHandle.OnStart(this);
                }
            }

            if (CurHandle != null && m_isUseNowStart)
            {
                if (!ingore)
                {
                    CurHandle.OnUseNowStart(this);
                }
                m_isCatchUseNowStart = true;
            }

            if (IsEnd)
            {
                End();
            }
        }
 static int Start(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI.HandleSequence obj  = (UI.HandleSequence)ToLua.CheckObject(L, 1, typeof(UI.HandleSequence));
         UI.Handle         arg0 = (UI.Handle)ToLua.CheckObject(L, 2, typeof(UI.Handle));
         obj.Start(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }