SamplyGame.SamplyGame.Start C# (CSharp) Method

Start() protected method

protected Start ( ) : void
return void
		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);
			});
		}