public override void Draw(SpriteBatch spriteBatch) { if (m_CoinsDialog != null) { m_CoinsDialog.Draw(spriteBatch); return; } // Draw all the UI Pannels for (int i = m_UIPanels.Count - 1; i >= 0; i--) { m_UIPanels[i].Draw(spriteBatch); } if (m_EndScreen != null) { m_EndScreen.Draw(spriteBatch, Game.ScreenWidth, Game.ScreenHeight); } if (m_PauseMenu != null) { m_PauseMenu.Draw(spriteBatch); } if (m_MessageBox != null) { m_MessageBox.Draw(spriteBatch); } }
public override void Draw(Renderer spriteBatch) { if (m_CoinsDialog != null) { m_CoinsDialog.Draw(spriteBatch); return; } if (m_VipDialog != null) { m_VipDialog.Draw(spriteBatch); return; } foreach (Tower t in m_Towers) { t.Draw(spriteBatch); } m_LevelLabel.Draw(spriteBatch); m_Level.Draw(spriteBatch); m_ExpBar.Draw(spriteBatch); m_ResetTutorial.Draw(spriteBatch); m_Options.Draw(spriteBatch); m_BuyCoins.Draw(spriteBatch); m_Exit.Draw(spriteBatch); m_SignOut.Draw(spriteBatch); m_Coins.Draw(spriteBatch); m_VIP.Draw(spriteBatch); if (m_FloorSelect != null) { m_FloorSelect.Draw(spriteBatch); } if (m_SoundDialog != null) { m_SoundDialog.Draw(spriteBatch); } if (m_OptionsDialog != null) { m_OptionsDialog.Draw(spriteBatch); } if (m_MessageBox != null) { m_MessageBox.Draw(spriteBatch); } }