static int Jump(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Nova.AdvancedDialogueHelper obj = (Nova.AdvancedDialogueHelper)ToLua.CheckObject <Nova.AdvancedDialogueHelper>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         obj.Jump(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int GetJump(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Nova.AdvancedDialogueHelper obj = (Nova.AdvancedDialogueHelper)ToLua.CheckObject <Nova.AdvancedDialogueHelper>(L, 1);
         string o = obj.GetJump();
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 3
0
        private void Awake()
        {
            try
            {
                scriptLoader.Init(scriptPath);
                flowChartTree = scriptLoader.GetFlowChartTree();
            }
            catch (Exception e)
            {
                Debug.LogError(e);
                Utils.Quit();
            }

            checkpointManager = GetComponent <CheckpointManager>();
            LuaRuntime.Instance.BindObject("variables", variables);
            advancedDialogueHelper = new AdvancedDialogueHelper(this);
            LuaRuntime.Instance.BindObject("advancedDialogueHelper", advancedDialogueHelper);
            coroutineHelper = new CoroutineHelper(this);
            LuaRuntime.Instance.BindObject("coroutineHelper", coroutineHelper);
        }
    static int _CreateNova_AdvancedDialogueHelper(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                Nova.AdvancedDialogueHelper obj = new Nova.AdvancedDialogueHelper();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Nova.AdvancedDialogueHelper.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }