klaviatuur parandatud

This commit is contained in:
Timur Nizamov
2025-12-17 20:04:12 +02:00
parent c5c8fe1259
commit 27d5fdd68c
5 changed files with 6883 additions and 6857 deletions

View File

@@ -60,15 +60,13 @@ public class AlarmTrigger : MonoBehaviour
RoomHum.set3DAttributes(FMODUnity.RuntimeUtils.To3DAttributes(gameObject)); //updating 3d attributes
AlarmSound.set3DAttributes(FMODUnity.RuntimeUtils.To3DAttributes(gameObject)); //updating 3d attributes
if (hasAlarm && !AudioManager.IsPlaying(AlarmSound)) // If alarm state has ended.
{
VentilationSequence.Play(); // Return to normal.
RoomHum.start();
AlarmSound.stop(FMOD.Studio.STOP_MODE.ALLOWFADEOUT);
VentilationSequence.Play(); // Return to normal.
hasAlarm = false;
}
RoomHum.start();
AlarmSound.stop(FMOD.Studio.STOP_MODE.ALLOWFADEOUT);
hasAlarm = false;
}
}