Example #1
0
 static void TestSkill()
 {
     Debug.InitLogger(new TestLogger());
     SkillModule.Skill skill = new SkillModule.Skill(null, 0, 1);
     skill.Cast();
     while (true)
     {
         skill.Update(0.1f);
     }
 }
 static int Update(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         BattleSystem.SkillModule.Skill obj = (BattleSystem.SkillModule.Skill)ToLua.CheckObject <BattleSystem.SkillModule.Skill>(L, 1);
         float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         obj.Update(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }