public void Update() { if (GameController.current.gameState == GameState.Playing) { int currentPosInMeters = (int)_player.transform.position.y / -meterScale; if (currentPosInMeters > metersDug) { metersDug = currentPosInMeters; _waterController.UpdateSpeed(true); } if (!_waterController.isChasing && metersDug > 0) { _waterController.BeginChasing(_easyMode); } if (!_generator.generatingChunk && _player.transform.position.y < _generator.generationNextTrigger) { _generator.GenerateChunk(); } } //end if gamePhase == Playing }