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

            checkpointManager = GetComponent <CheckpointManager>();
            LuaRuntime.Instance.BindObject("variables", variables);
            LuaRuntime.Instance.BindObject("advancedDialogueHelper", advancedDialogueHelper);
        }
Ejemplo n.º 3
0
 private void Awake()
 {
     scriptLoader.Init(scriptPath);
     flowChartTree = scriptLoader.GetFlowChartTree();
 }
Ejemplo n.º 4
0
 private void Awake()
 {
     scriptLoader.Init(scriptPath);
     flowChartTree     = scriptLoader.GetFlowChartTree();
     checkpointManager = GetComponent <CheckpointManager>();
 }