Ejemplo n.º 1
0
 static int Play(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UI.AnimatorHandle obj = (UI.AnimatorHandle)ToLua.CheckObject(L, 1, typeof(UI.AnimatorHandle));
         obj.Play();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 2
0
    static int get_m_ani(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.AnimatorHandle    obj = (UI.AnimatorHandle)o;
            UnityEngine.Animator ret = obj.m_ani;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_ani on a nil value" : e.Message));
        }
    }
Ejemplo n.º 3
0
    static int get_m_playOnEnable(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.AnimatorHandle obj = (UI.AnimatorHandle)o;
            bool ret = obj.m_playOnEnable;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_playOnEnable on a nil value" : e.Message));
        }
    }
Ejemplo n.º 4
0
    static int get_m_curAni(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.AnimatorHandle obj = (UI.AnimatorHandle)o;
            string            ret = obj.m_curAni;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_curAni on a nil value" : e.Message));
        }
    }
Ejemplo n.º 5
0
    static int set_m_ani(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.AnimatorHandle    obj  = (UI.AnimatorHandle)o;
            UnityEngine.Animator arg0 = (UnityEngine.Animator)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Animator));
            obj.m_ani = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_ani on a nil value" : e.Message));
        }
    }
Ejemplo n.º 6
0
    static int set_m_playOnEnable(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.AnimatorHandle obj = (UI.AnimatorHandle)o;
            bool arg0             = LuaDLL.luaL_checkboolean(L, 2);
            obj.m_playOnEnable = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_playOnEnable on a nil value" : e.Message));
        }
    }
Ejemplo n.º 7
0
    static int set_m_curAni(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.AnimatorHandle obj  = (UI.AnimatorHandle)o;
            string            arg0 = ToLua.CheckString(L, 2);
            obj.m_curAni = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_curAni on a nil value" : e.Message));
        }
    }
Ejemplo n.º 8
0
 void OnEnable()
 {
     m_cur = target as AnimatorHandle;
 }