public override void ViewDidLoad () { base.ViewDidLoad (); renderer = new Renderer (); var renderView = (ImageView)View; renderView.Renderer = renderer; // load all renderer assets before starting game loop renderer.Configure (renderView); }
public override void ViewWillAppear (bool animated) { Renderer = renderer; base.ViewWillAppear (animated); didEnterBackgroundObserver = UIApplication.Notifications.ObserveDidEnterBackground (DidEnterBackground); willEnterForegroundObserver = UIApplication.Notifications.ObserveWillEnterForeground (WillEnterForeground); // run the game loop DispatchGameLoop (); }