Exemplo n.º 1
0
 protected override void OnAfterUpdate()
 {
     base.OnAfterUpdate();
     if (this.controller == null)
     {
         this.controller = new BenchmarkController();
         this.controller.PrepareBenchmarks();
     }
     this.controller.Update();
 }
Exemplo n.º 2
0
 protected override void OnExecContextChanged(DualityApp.ExecutionContext previousContext)
 {
     base.OnExecContextChanged(previousContext);
     // When entering or existing sandbox mode in the editor, reset the global controllers
     this.controller = null;
 }