Beispiel #1
0
 public void TestTimer()
 {
     curEvent = FaceMgr.timerMgr.RegistTimer(() =>
     {
         LitLogger.Log("Test Timer");
     }, 0, 10);
 }
Beispiel #2
0
    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"));
        }
    }
Beispiel #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);
                }
            }
        }
        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);
            }
        }
Beispiel #5
0
 public void TestImagePath()
 {
     LitLogger.Log(SerializeUitls.GetResPath(sprite));
 }
Beispiel #6
0
    public void testText()
    {
        Text t = GetComponent <Text>();

        LitLogger.Log(t.alignment.ToString());
    }
Beispiel #7
0
 public static void Log(object obj)
 {
     LitLogger.Log(obj);
 }