static int StopPlay(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         ColaFramework.SceneCharacter obj = (ColaFramework.SceneCharacter)ToLua.CheckObject <ColaFramework.SceneCharacter>(L, 1);
         obj.StopPlay();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int PlayAnimation(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes <string>(L, 2))
            {
                ColaFramework.SceneCharacter obj = (ColaFramework.SceneCharacter)ToLua.CheckObject <ColaFramework.SceneCharacter>(L, 1);
                string arg0 = ToLua.ToString(L, 2);
                obj.PlayAnimation(arg0);
                return(0);
            }
            else if (count == 2 && TypeChecker.CheckTypes <int>(L, 2))
            {
                ColaFramework.SceneCharacter obj = (ColaFramework.SceneCharacter)ToLua.CheckObject <ColaFramework.SceneCharacter>(L, 1);
                int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
                obj.PlayAnimation(arg0);
                return(0);
            }
            else if (count == 3 && TypeChecker.CheckTypes <string, System.Action <bool> >(L, 2))
            {
                ColaFramework.SceneCharacter obj = (ColaFramework.SceneCharacter)ToLua.CheckObject <ColaFramework.SceneCharacter>(L, 1);
                string arg0 = ToLua.ToString(L, 2);
                System.Action <bool> arg1 = (System.Action <bool>)ToLua.ToObject(L, 3);
                obj.PlayAnimation(arg0, arg1);
                return(0);
            }
            else if (count == 3 && TypeChecker.CheckTypes <int, System.Action <bool> >(L, 2))
            {
                ColaFramework.SceneCharacter obj = (ColaFramework.SceneCharacter)ToLua.CheckObject <ColaFramework.SceneCharacter>(L, 1);
                int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
                System.Action <bool> arg1 = (System.Action <bool>)ToLua.ToObject(L, 3);
                obj.PlayAnimation(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: ColaFramework.SceneCharacter.PlayAnimation"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static int CreateSceneCharacter(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.SceneCharacter o = ColaFramework.SceneCharacter.CreateSceneCharacter(arg0, arg1, arg2);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int set_Visible(IntPtr L)
    {
        object o = null;

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

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.SceneCharacter obj  = (ColaFramework.SceneCharacter)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"));
        }
    }
    static int set_transform(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.SceneCharacter obj  = (ColaFramework.SceneCharacter)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"));
        }
    }
    static int set_gameObject(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.SceneCharacter obj  = (ColaFramework.SceneCharacter)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"));
        }
    }
    static int get_Visible(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.SceneCharacter obj = (ColaFramework.SceneCharacter)o;
            bool ret = obj.Visible;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Visible on a nil value"));
        }
    }
    static int get_Direction(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.SceneCharacter obj = (ColaFramework.SceneCharacter)o;
            UnityEngine.Vector3          ret = obj.Direction;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index Direction on a nil value"));
        }
    }
    static int get_PrefabPath(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.SceneCharacter obj = (ColaFramework.SceneCharacter)o;
            string ret = obj.PrefabPath;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index PrefabPath on a nil value"));
        }
    }
    static int get_gameObject(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ColaFramework.SceneCharacter obj = (ColaFramework.SceneCharacter)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"));
        }
    }