Esempio n. 1
0
    static int set_extrapolationMode(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.Playables.PlayableDirector obj  = (UnityEngine.Playables.PlayableDirector)o;
            UnityEngine.Playables.DirectorWrapMode arg0 = (UnityEngine.Playables.DirectorWrapMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.Playables.DirectorWrapMode));
            obj.extrapolationMode = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index extrapolationMode on a nil value"));
        }
    }
Esempio n. 2
0
    static int get_extrapolationMode(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.Playables.PlayableDirector obj = (UnityEngine.Playables.PlayableDirector)o;
            UnityEngine.Playables.DirectorWrapMode ret = obj.extrapolationMode;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index extrapolationMode on a nil value"));
        }
    }
Esempio n. 3
0
    static int Play(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                UnityEngine.Playables.PlayableDirector obj = (UnityEngine.Playables.PlayableDirector)ToLua.CheckObject <UnityEngine.Playables.PlayableDirector>(L, 1);
                obj.Play();
                return(0);
            }
            else if (count == 2)
            {
                UnityEngine.Playables.PlayableDirector obj  = (UnityEngine.Playables.PlayableDirector)ToLua.CheckObject <UnityEngine.Playables.PlayableDirector>(L, 1);
                UnityEngine.Playables.PlayableAsset    arg0 = (UnityEngine.Playables.PlayableAsset)ToLua.CheckObject <UnityEngine.Playables.PlayableAsset>(L, 2);
                obj.Play(arg0);
                return(0);
            }
            else if (count == 3)
            {
                UnityEngine.Playables.PlayableDirector obj  = (UnityEngine.Playables.PlayableDirector)ToLua.CheckObject <UnityEngine.Playables.PlayableDirector>(L, 1);
                UnityEngine.Playables.PlayableAsset    arg0 = (UnityEngine.Playables.PlayableAsset)ToLua.CheckObject <UnityEngine.Playables.PlayableAsset>(L, 2);
                UnityEngine.Playables.DirectorWrapMode arg1 = (UnityEngine.Playables.DirectorWrapMode)ToLua.CheckObject(L, 3, typeof(UnityEngine.Playables.DirectorWrapMode));
                obj.Play(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Playables.PlayableDirector.Play"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }