Play() public méthode

public Play ( Playable playable ) : void
playable Playable
Résultat void
    static int Play(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, typeof(UnityEngine.Experimental.Director.DirectorPlayer), typeof(UnityEngine.Experimental.Director.Playable)))
            {
                UnityEngine.Experimental.Director.DirectorPlayer obj  = (UnityEngine.Experimental.Director.DirectorPlayer)ToLua.ToObject(L, 1);
                UnityEngine.Experimental.Director.Playable       arg0 = (UnityEngine.Experimental.Director.Playable)ToLua.ToObject(L, 2);
                obj.Play(arg0);
                return(0);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, typeof(UnityEngine.Experimental.Director.DirectorPlayer), typeof(UnityEngine.Experimental.Director.Playable), typeof(object)))
            {
                UnityEngine.Experimental.Director.DirectorPlayer obj  = (UnityEngine.Experimental.Director.DirectorPlayer)ToLua.ToObject(L, 1);
                UnityEngine.Experimental.Director.Playable       arg0 = (UnityEngine.Experimental.Director.Playable)ToLua.ToObject(L, 2);
                object arg1 = ToLua.ToVarObject(L, 3);
                obj.Play(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Experimental.Director.DirectorPlayer.Play"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static public int Play(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 2)
         {
             UnityEngine.Experimental.Director.DirectorPlayer self = (UnityEngine.Experimental.Director.DirectorPlayer)checkSelf(l);
             UnityEngine.Experimental.Director.Playable       a1;
             checkType(l, 2, out a1);
             self.Play(a1);
             pushValue(l, true);
             return(1);
         }
         else if (argc == 3)
         {
             UnityEngine.Experimental.Director.DirectorPlayer self = (UnityEngine.Experimental.Director.DirectorPlayer)checkSelf(l);
             UnityEngine.Experimental.Director.Playable       a1;
             checkType(l, 2, out a1);
             System.Object a2;
             checkType(l, 3, out a2);
             self.Play(a1, a2);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemple #3
0
    static int Play(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 2)
        {
            UnityEngine.Experimental.Director.DirectorPlayer obj  = (UnityEngine.Experimental.Director.DirectorPlayer)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.Experimental.Director.DirectorPlayer");
            UnityEngine.Experimental.Director.Playable       arg0 = (UnityEngine.Experimental.Director.Playable)LuaScriptMgr.GetNetObject(L, 2, typeof(UnityEngine.Experimental.Director.Playable));
            obj.Play(arg0);
            return(0);
        }
        else if (count == 3)
        {
            UnityEngine.Experimental.Director.DirectorPlayer obj  = (UnityEngine.Experimental.Director.DirectorPlayer)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.Experimental.Director.DirectorPlayer");
            UnityEngine.Experimental.Director.Playable       arg0 = (UnityEngine.Experimental.Director.Playable)LuaScriptMgr.GetNetObject(L, 2, typeof(UnityEngine.Experimental.Director.Playable));
            object arg1 = LuaScriptMgr.GetVarObject(L, 3);
            obj.Play(arg0, arg1);
            return(0);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: UnityEngine.Experimental.Director.DirectorPlayer.Play");
        }

        return(0);
    }
 static public int Play(IntPtr l)
 {
     try {
         UnityEngine.Experimental.Director.DirectorPlayer self = (UnityEngine.Experimental.Director.DirectorPlayer)checkSelf(l);
         UnityEngine.Experimental.Director.Playable       a1;
         checkValueType(l, 2, out a1);
         self.Play(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int Play(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.Experimental.Director.DirectorPlayer obj  = (UnityEngine.Experimental.Director.DirectorPlayer)ToLua.CheckObject(L, 1, typeof(UnityEngine.Experimental.Director.DirectorPlayer));
         UnityEngine.Experimental.Director.Playable       arg0 = (UnityEngine.Experimental.Director.Playable)ToLua.CheckObject(L, 2, typeof(UnityEngine.Experimental.Director.Playable));
         obj.Play(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }