private void Update() { if (!_isGameInPause && (cgController.IsGameStart && !cgController.IsGameLose)) { if (_timer < 0 && !_isInitializeSlab) { int x, y; _isInitializeSlab = true; var value = cgController.GenerateSlab(out x, out y); if (value) { viewSlabArray[x, y] = InitializeSlab(x, y); } _isInitializeSlab = false; _timer = 3f; } if (_timer > 0) { _timer -= cgController.DeltaTime(); } } }