some old sounds are added
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user