GetResSprite() public method

public GetResSprite ( string spName ) : Sprite
spName string
return Sprite
Example #1
0
 static int GetResSprite(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         GameResFactory     obj  = (GameResFactory)ToLua.CheckObject(L, 1, typeof(GameResFactory));
         string             arg0 = ToLua.CheckString(L, 2);
         UnityEngine.Sprite o    = obj.GetResSprite(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }