void Update() { if (!m_CountdownAnimatorScript.GetIsCountdownPlaying()) { handleInGameMenu(); animatePlayer(); handlePlayerMovement(); } }
void Update() { if (!m_PlayerMovementScript.IsGameOver() && !m_CountdownAnimatorScript.GetIsCountdownPlaying()) { moveObstaclesTowardsPlayer(); moveSceneryObjectsTowardsPlayer(); moveFrontObstacleToBackIfPlayerPassedIt(); moveFrontSceneryObjectToBackIfPlayerPassedIt(); } handleInGameMenuIfNeeded(); }