コード例 #1
0
ファイル: Game.cs プロジェクト: kaifudeng/ck1
 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);
         }
     });
 }