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