/// <summary> /// Method that is called when pea jumps /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void _source_OnJumpStarted(JumpEventArgs e) { // Because the controler is created BEFORE the sprites this works if (e.Pea.IsAlive && !e.Pea.IsNotHappy && e.Pea.JumpSpot != null) { _activeState = new SpriteJumpInfo(this.SceneLayer, _pointsController.ActiveTimes(e.Pea)); _activeState.Initialize(); if (this.ContentManager != null) { _activeState.LoadContent(this.ContentManager); } } }