// Update is called once per frame void Update() { gameTime += Time.deltaTime; if (inGameUIManager != null) { inGameUIManager.Update(); } if (gameState != enGameState.playing) { return; } if (gameTouchController != null) { gameTouchController.Update(); } if (inGameLevelManager != null) { inGameLevelManager.Update(); } if (modelManager != null) { modelManager.Update(); } if (inGameBgColor != null) { inGameBgColor.Update(); } if (role != null) { role.RoleUpdate(); } }
public virtual void Update(GameTime gameTime) { if (!Begun) { Begin(); } ScriptManager.LoadAndAddScripts(Content); ScriptManager.UpdateScripts(gameTime); if (ScriptManager.UpdateGame) { GameObjectManager.Update(gameTime); UIManager.Update(gameTime); InGameUIManager.Update(gameTime); // HandleTransitioning(gameTime); } }
// Update is called once per frame void Update() { gameTime += Time.deltaTime; if (gameState != enGameState.playing) { return; } if (gameTouchController != null) { gameTouchController.Update(); } inGameObjManager.Update(); playerCtrlManager.Update(); inGamePlayerManager.Update(); inGameCameraManager.Update(); inGameLevelManager.Update(); inGameUIManager.Update(); }
// Update is called once per frame void Update() { gameTime += Time.deltaTime; if (inGameUIManager != null) { inGameUIManager.Update(); } if (gameState != enGameState.playing) { return; } aloneGameTime += Time.deltaTime; gameScale = Mathf.Min(1, aloneGameTime / maxSpeedTime); gameSpeed = 4 + maxSpeed * gameScale; if (gameTouchController != null) { gameTouchController.Update(); } if (inGameLevelManager != null) { inGameLevelManager.Update(); } if (modelManager != null) { modelManager.Update(); } if (inGameColorManager != null) { inGameColorManager.Update(); } if (role != null) { role.RoleUpdate(); } }