minor change to function naming to make more sense in screen manager
This commit is contained in:
parent
fffc883327
commit
52c90498b9
@ -108,7 +108,7 @@ namespace RhythmBullet
|
||||
PostResize();
|
||||
}
|
||||
|
||||
screenManager.Update(gameTime, Assets.Done);
|
||||
screenManager.UpdateCurrentScreen(gameTime, Assets.Done);
|
||||
|
||||
InputUtilities.Update();
|
||||
camera.Update();
|
||||
@ -121,7 +121,7 @@ namespace RhythmBullet
|
||||
/// <param name="gameTime">Provides a snapshot of timing values.</param>
|
||||
protected override void Draw(GameTime gameTime)
|
||||
{
|
||||
screenManager.Draw(spriteBatch);
|
||||
screenManager.DrawCurrentScreen(spriteBatch);
|
||||
base.Draw(gameTime);
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ namespace RhythmBullet.Zer01HD.Utilities.ScreenSystem
|
||||
this.camera = camera;
|
||||
}
|
||||
|
||||
public void Update(GameTime gameTime, bool assetsDone)
|
||||
public void UpdateCurrentScreen(GameTime gameTime, bool assetsDone)
|
||||
{
|
||||
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);
|
||||
if (Screen.State == ScreenState.EnterTransition && previousScreen != null && previousScreen.UseRenderTargetForExitTransition)
|
||||
|
Loading…
x
Reference in New Issue
Block a user