Example #1
0
 protected override void OnAfterUpdate()
 {
     base.OnAfterUpdate();
     if (this.controller == null)
     {
         this.controller = new BenchmarkController();
         this.controller.PrepareBenchmarks();
     }
     this.controller.Update();
 }
Example #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;
 }