public void TestTimer() { curEvent = FaceMgr.timerMgr.RegistTimer(() => { LitLogger.Log("Test Timer"); }, 0, 10); }
public void TestConfig() { uint key = 40; var row = TableMgr.GetTableRow("hero_skill_jg", key); LitLogger.Log(row.GetString("name")); var items = row.GetFieldList("items"); LitLogger.Log("items Count : " + items.Count); foreach (var i in items) { LitLogger.Log(i); } var datas = row.GetFieldList("datas"); LitLogger.Log("datas Count : " + datas.Count); foreach (var d in datas) { var Md = d as DynamicMessage; LitLogger.Log(Md.GetInt("price")); } }
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); } } }
public bool Register(string path) { lastError.Clear(); try { using (FileStream stream = File.OpenRead(path)) { return(Register(stream)); } } catch (Exception e) { LitLogger.Log(e.Message); lastError.AddLast(e.Message); return(false); } }
public void TestImagePath() { LitLogger.Log(SerializeUitls.GetResPath(sprite)); }
public void testText() { Text t = GetComponent <Text>(); LitLogger.Log(t.alignment.ToString()); }
public static void Log(object obj) { LitLogger.Log(obj); }