Exemple #1
0
    static int GetRandomSprite(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        UIAtlas obj  = (UIAtlas)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIAtlas");
        string  arg0 = LuaScriptMgr.GetLuaString(L, 2);
        string  o    = obj.GetRandomSprite(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
 static public int GetRandomSprite(IntPtr l)
 {
     try {
         UIAtlas       self = (UIAtlas)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         var ret = self.GetRandomSprite(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemple #3
0
 static int GetRandomSprite(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIAtlas obj  = (UIAtlas)ToLua.CheckObject <UIAtlas>(L, 1);
         string  arg0 = ToLua.CheckString(L, 2);
         string  o    = obj.GetRandomSprite(arg0);
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }