コード例 #1
0
 static int Release(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         ColaFramework.ISceneCharacter obj = (ColaFramework.ISceneCharacter)ToLua.CheckObject <ColaFramework.ISceneCharacter>(L, 1);
         obj.Release();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #2
0
 static int GetModelAt(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.UI.Extensions.UGUIModel obj = (UnityEngine.UI.Extensions.UGUIModel)ToLua.CheckObject <UnityEngine.UI.Extensions.UGUIModel>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         ColaFramework.ISceneCharacter o = obj.GetModelAt(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #3
0
 static int SetRotation2D(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         ColaFramework.ISceneCharacter obj = (ColaFramework.ISceneCharacter)ToLua.CheckObject <ColaFramework.ISceneCharacter>(L, 1);
         float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         obj.SetRotation2D(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #4
0
 static int CreateSceneCharacterInf(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         string       arg0 = ToLua.CheckString(L, 1);
         AnimCtrlEnum arg1 = (AnimCtrlEnum)ToLua.CheckObject(L, 2, typeof(AnimCtrlEnum));
         bool         arg2 = LuaDLL.luaL_checkboolean(L, 3);
         ColaFramework.ISceneCharacter o = ColaFramework.SceneCharacter.CreateSceneCharacterInf(arg0, arg1, arg2);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #5
0
    static int get_transform(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.ISceneCharacter obj = (ColaFramework.ISceneCharacter)o;
            UnityEngine.Transform         ret = obj.transform;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index transform on a nil value"));
        }
    }
コード例 #6
0
    static int get_gameObject(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.ISceneCharacter obj = (ColaFramework.ISceneCharacter)o;
            UnityEngine.GameObject        ret = obj.gameObject;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index gameObject on a nil value"));
        }
    }
コード例 #7
0
    static int set_IsValid(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.ISceneCharacter obj = (ColaFramework.ISceneCharacter)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.IsValid = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index IsValid on a nil value"));
        }
    }
コード例 #8
0
    static int set_Direction(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.ISceneCharacter obj  = (ColaFramework.ISceneCharacter)o;
            UnityEngine.Vector3           arg0 = ToLua.ToVector3(L, 2);
            obj.Direction = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Direction on a nil value"));
        }
    }
コード例 #9
0
    static int set_transform(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.ISceneCharacter obj  = (ColaFramework.ISceneCharacter)o;
            UnityEngine.Transform         arg0 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 2);
            obj.transform = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index transform on a nil value"));
        }
    }
コード例 #10
0
    static int set_gameObject(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.ISceneCharacter obj  = (ColaFramework.ISceneCharacter)o;
            UnityEngine.GameObject        arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
            obj.gameObject = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index gameObject on a nil value"));
        }
    }
コード例 #11
0
    static int get_IsValid(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.ISceneCharacter obj = (ColaFramework.ISceneCharacter)o;
            bool ret = obj.IsValid;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index IsValid on a nil value"));
        }
    }