some old sounds are added

This commit is contained in:
Timur Nizamov
2025-10-17 01:54:45 +03:00
parent 16c4680d6c
commit 013ed4944c
52 changed files with 929 additions and 43 deletions

View File

@@ -37,6 +37,8 @@ public class PassangerSeat : LocomotionProvider
Vector3 cameraShift = cameraTransform.localPosition;
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.DoorOpen, gameObject);
currentPassanger = player;
player.transform.SetParent(this.transform);
player.transform.localPosition = -cameraShift;
@@ -75,7 +77,9 @@ public class PassangerSeat : LocomotionProvider
Transform cameraTransform = cameraChild.transform.parent.transform;
// Set the player<65>s parent to null (making it part of the scene hierarchy)
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.DoorClose, gameObject);
// Set the player<65>s parent to null (making it part of the scene hierarchy)
currentPassanger.transform.SetParent(null);
// Put the player outside;