Exemplo n.º 1
0
 static int ToInit(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UITweenScale1 obj = (UITweenScale1)ToLua.CheckObject(L, 1, typeof(UITweenScale1));
         obj.ToInit();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 2
0
 static int Play(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UITweenScale1 obj  = (UITweenScale1)ToLua.CheckObject(L, 1, typeof(UITweenScale1));
         bool          arg0 = LuaDLL.luaL_checkboolean(L, 2);
         obj.Play(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 3
0
    static int get_to(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITweenScale1       obj = (UITweenScale1)o;
            UnityEngine.Vector3 ret = obj.to;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index to on a nil value" : e.Message));
        }
    }
Exemplo n.º 4
0
    static int set_to(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITweenScale1       obj  = (UITweenScale1)o;
            UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
            obj.to = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index to on a nil value" : e.Message));
        }
    }