Update ShipCustomAttach.cs

This commit is contained in:
JohnCorby 2022-02-04 14:45:43 -08:00
parent 1441dc4a32
commit 7472eb6936

View File

@ -61,10 +61,12 @@ namespace QSB.ShipSync
{
transform.position = Locator.GetPlayerTransform().position;
_playerAttachPoint.AttachPlayer();
ShipManager.Instance.CockpitController._shipAudioController.PlayBuckle();
}
else if (attachedToUs && OWInput.IsNewlyPressed(InputLibrary.cancel, InputMode.Character))
{
_playerAttachPoint.DetachPlayer();
ShipManager.Instance.CockpitController._shipAudioController.PlayUnbuckle();
}
}
}