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)); } }
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); }
private void Awake() { scriptLoader.Init(scriptPath); flowChartTree = scriptLoader.GetFlowChartTree(); }
private void Awake() { scriptLoader.Init(scriptPath); flowChartTree = scriptLoader.GetFlowChartTree(); checkpointManager = GetComponent <CheckpointManager>(); }