Beispiel #1
0
 static public void ReloadAll()
 {
     foreach (var cfg in allConfigures)
     {
         cfg.Value.Reload();
     }
     foreach (var info in factory.LastError)
     {
         LitLogger.Error(info);
     }
 }
Beispiel #2
0
 protected override void Init()
 {
     if (audioPlayer == null)
     {
         audioPlayer = GetOrAddComponent <AudioSource>();
         if (audioPlayer == null)
         {
             LitLogger.Error("Attach AudioSource Faild !!");
         }
     }
 }
Beispiel #3
0
 public void CallFunc(string funcFunName, object p)
 {
     try
     {
         var func = luaMgr.GetFunction(funcFunName);
         if (func == null)
         {
             return;
         }
         func.Push(p);
         func.Call();
         func.EndPCall();
     }catch (System.Exception e)
     {
         LitLogger.Error(e.Message);
     }
 }
Beispiel #4
0
 public object[] CallFunc(string funcFunName, params object[] args)
 {
     try
     {
         var func = luaMgr.GetFunction(funcFunName);
         if (func == null)
         {
             return(null);
         }
         return(func.Call(args));
     }
     catch (System.Exception e)
     {
         LitLogger.Error(e.Message);
         return(null);
     }
 }
Beispiel #5
0
 public static void Error(object obj)
 {
     LitLogger.Error(obj);
 }