Пример #1
0
        public static LuaTimerEvent RegistTimer(LitLua lit, string func_name, float interval, int callTimes, float delay)
        {
            LuaTimerEvent lte = new LuaTimerEvent(lit, func_name, interval, callTimes, delay);

            FaceMgr.timerMgr.RegistTimer(lte);
            return(lte);
        }
Пример #2
0
 public static LitLua GetLit(string LID)
 {
     if (!LID.isEmpty())
     {
         return(LitLua.UID_Get(LID));
     }
     return(null);
 }
Пример #3
0
        public void OnClick()
        {
            LitLogger.Log(this.gameObject.name + "OnClick");

            if (lastClickTime + clickInterval < Time.time)
            {
                lastClickTime = Time.time;
                LitLua lit = GetComponent <LitLua>();
                if (lit != null)
                {
                    lit.GenerateEvent(LitEventType.LE_OnClick, lit);
                }
            }
        }
Пример #4
0
 public static void WaitFor(LitLua lit, string func_name, float delay)
 {
     RegistTimer(lit, func_name, 0, 1, delay);
 }
Пример #5
0
 public static LuaTimerEvent RepeatedCall(LitLua lit, string func_name, float interval, float delay)
 {
     return(RegistTimer(lit, func_name, interval, -1, delay));
 }
Пример #6
0
 public static void CatchEvent()
 {
     LitLua.CatchEvent();
 }