Example #1
0
 public void OnLoaded(DuktapeVM vm)
 {
     _vm.AddSearchPath(scriptRootPath);
     if (debuggerSupport)
     {
         DuktapeDebugger.CreateDebugger(_vm);
         if (waitForDebuggerAttack)
         {
             Debug.LogWarning("waiting for debugger attach");
             DuktapeDebugger.onAttached += () =>
             {
                 _vm.EvalMain(entryScript);
             };
         }
     }
     else
     {
         _vm.EvalMain(entryScript);
     }
 }