public static void update() { GameObject alienGrid = (GameObject)FactoryManager.getAlienFactry().cPCSTree.getRoot(); if (alienGrid.pChild == null && currentPlayer.death == false) { currentPlayer.level = new Level2(); currentPlayer.level.load(); } if (currentPlayer.death == true) { // FontManager.add(Font.FontName.GameOver, SpriteBatch.SpriteBatchName.Text, "Game Over", Glyph.Name.Consolas36pt, 400, 500, Unit.redColor); } if (currentPlayer.playerType == Player.PlayerType.Player1) { Font text = FontManager.find(Font.FontName.ScoreNum1); Debug.Assert(text != null); text.updateText("<" + currentPlayer.score + ">"); } else { Font text = FontManager.find(Font.FontName.ScoreNum2); Debug.Assert(text != null); text.updateText("<" + currentPlayer.score + ">"); } }