Example #1
0
 protected override void Start()
 {
     base.Start();
     CreateScene();
     Input.SubscribeToKeyDown(e =>
     {
         if (e.Key == Key.Esc)
         {
             Exit();
         }
         if (e.Key == Key.C)
         {
             AddCollisionDebugBox(scene, true);
         }
         if (e.Key == Key.V)
         {
             AddCollisionDebugBox(scene, false);
         }
     });
 }