minor change to function naming to make more sense in screen manager

This commit is contained in:
Harrison Deng 2018-11-12 19:45:57 -06:00
parent fffc883327
commit 52c90498b9
2 changed files with 4 additions and 4 deletions

View File

@ -108,7 +108,7 @@ namespace RhythmBullet
PostResize(); PostResize();
} }
screenManager.Update(gameTime, Assets.Done); screenManager.UpdateCurrentScreen(gameTime, Assets.Done);
InputUtilities.Update(); InputUtilities.Update();
camera.Update(); camera.Update();
@ -121,7 +121,7 @@ namespace RhythmBullet
/// <param name="gameTime">Provides a snapshot of timing values.</param> /// <param name="gameTime">Provides a snapshot of timing values.</param>
protected override void Draw(GameTime gameTime) protected override void Draw(GameTime gameTime)
{ {
screenManager.Draw(spriteBatch); screenManager.DrawCurrentScreen(spriteBatch);
base.Draw(gameTime); base.Draw(gameTime);
} }

View File

@ -53,7 +53,7 @@ namespace RhythmBullet.Zer01HD.Utilities.ScreenSystem
this.camera = camera; this.camera = camera;
} }
public void Update(GameTime gameTime, bool assetsDone) public void UpdateCurrentScreen(GameTime gameTime, bool assetsDone)
{ {
switch (Screen.State) switch (Screen.State)
{ {
@ -93,7 +93,7 @@ namespace RhythmBullet.Zer01HD.Utilities.ScreenSystem
} }
} }
public void Draw(SpriteBatch spriteBatch) public void DrawCurrentScreen(SpriteBatch spriteBatch)
{ {
graphics.GraphicsDevice.Clear(Screen.BackgroundColor); graphics.GraphicsDevice.Clear(Screen.BackgroundColor);
if (Screen.State == ScreenState.EnterTransition && previousScreen != null && previousScreen.UseRenderTargetForExitTransition) if (Screen.State == ScreenState.EnterTransition && previousScreen != null && previousScreen.UseRenderTargetForExitTransition)