예제 #1
0
 static public void ReloadAll()
 {
     foreach (var cfg in allConfigures)
     {
         cfg.Value.Reload();
     }
     foreach (var info in factory.LastError)
     {
         LitLogger.Error(info);
     }
 }
예제 #2
0
 protected override void Init()
 {
     if (audioPlayer == null)
     {
         audioPlayer = GetOrAddComponent <AudioSource>();
         if (audioPlayer == null)
         {
             LitLogger.Error("Attach AudioSource Faild !!");
         }
     }
 }
예제 #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);
     }
 }
예제 #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);
     }
 }
예제 #5
0
 public static void Error(object obj)
 {
     LitLogger.Error(obj);
 }