static int SetBtnSprite(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); SkillButton obj = (SkillButton)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SkillButton"); Sprite arg0 = (Sprite)LuaScriptMgr.GetUnityObject(L, 2, typeof(Sprite)); obj.SetBtnSprite(arg0); return(0); }