public void TruckUnloaded(object sender, TruckUnLoadedEventArgs args) { CurrentDecelerationSpeed = 0; ServiceLocator.GetVoiceoverService().FadeOutSound(SoundType.TruckEngineNeutral); ServiceLocator.GetVoiceoverService().PlaySound(SoundType.TruckMovingBoosted, 0); CurrentMovementSpeed = MaxMovementSpeed; }
void TruckUnloaded(object sender, TruckUnLoadedEventArgs args) { RockDisplayModel.gameObject.SetActive(false); // Only enlarge the rock when its invisible to the player. if (Request_ChangeRockScaleOnNextUnload) { ChangeRockScale(); } }