private void OnShowTerrainModel(TerrainModel terrainModel) { if (!terrainModel) { _currentTerrainModelType = null; _animationProgress = 1f; return; } Type modelType = terrainModel.GetType(); if (_currentTerrainModelType != modelType) { _currentTerrainModelType = modelType; _animationProgress = 0f; _startPosition = transform.localPosition; } }