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); }
static int GetFlowChartTree(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Nova.ScriptLoader obj = (Nova.ScriptLoader)ToLua.CheckObject <Nova.ScriptLoader>(L, 1); Nova.FlowChartTree o = obj.GetFlowChartTree(); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private void Awake() { scriptLoader.Init(scriptPath); flowChartTree = scriptLoader.GetFlowChartTree(); }
private void Awake() { scriptLoader.Init(scriptPath); flowChartTree = scriptLoader.GetFlowChartTree(); checkpointManager = GetComponent <CheckpointManager>(); }