public void EndTransition() { ServiceHelper.RemoveComponent<LiquidHost.WaterTransitionRenderer>(this.TransitionRenderer); this.TransitionRenderer = (LiquidHost.WaterTransitionRenderer) null; this.ForcedUpdate = true; this.Update(new GameTime()); this.ForcedUpdate = false; }
public void StartTransition() { ServiceHelper.AddComponent((IGameComponent) (this.TransitionRenderer = new LiquidHost.WaterTransitionRenderer(this.Game, this))); this.WaterLevel = this.LevelManager.WaterHeight; this.RightVector = FezMath.RightVector(this.CameraManager.Viewpoint); }