public void GetViewPort(Viewport viewPort) { Collision_Manager.GetViewPort(viewPort); Asteroid_Manager.GetViewPort(viewPort); Ship_Manager.GetViewPort(viewPort); Projectile_Manager.GetViewPort(viewPort); }
public void DrawGameScreen(SpriteBatch spriteBatch) { Asteroid_Manager.Draw(spriteBatch); PowerUp_Manager.Draw(spriteBatch); Ship_Manager.Draw(spriteBatch); Projectile_Manager.Draw(spriteBatch); Explosions.Draw(spriteBatch); HUD.Draw(spriteBatch); }
public void UpdateGameScreen(GameTime gameTime, bool otherScreenHasFocus) { if (otherScreenHasFocus) { return; } Collision_Manager.Update(gameTime); Asteroid_Manager.Update(gameTime); Ship_Manager.Update(gameTime); Projectile_Manager.Update(gameTime); PowerUp_Manager.Update(gameTime); Explosions.Update(gameTime); GameOver_Manager.Update(gameTime); }
private void Awake() { totalPower = 5; S = this; }
void Awake() { if (Instance == null) { Instance = this; DontDestroyOnLoad(gameObject); } else { DestroyImmediate(gameObject); } }