コード例 #1
0
		public override void ViewDidLoad ()
		{
			UIApplication.SharedApplication.SetStatusBarHidden (true, true);

			var scnView = (SCNView)View;
			scnView.BackgroundColor = UIColor.Black;
			scnView.Scene = SetupScene ();
			scnView.Scene.PhysicsWorld.Speed = 4f;

			scnView.OverlayScene = new OverlayScene (scnView.Bounds.Size);
			SetupAccelerometer ();

			scnView.PointOfView = cameraNode;
			scnView.WeakSceneRendererDelegate = this;

			var doubleTap = new UITapGestureRecognizer (HandleDoubleTap);
			doubleTap.NumberOfTapsRequired = 2;
			doubleTap.NumberOfTouchesRequired = 2;
			scnView.GestureRecognizers = new UIGestureRecognizer [] { doubleTap };

			base.ViewDidLoad ();

			GameView = (GameView) View;
		}