using QSB.Messaging; using QSB.WorldSync; namespace QSB.ModelShip.Messages; public class RespawnModelShipMessage : QSBMessage { public RespawnModelShipMessage(bool playEffects) : base(playEffects) { } public override void OnReceiveRemote() { var flightConsole = QSBWorldSync.GetUnityObject(); flightConsole.RespawnModelShip(Data); if (Data) { flightConsole._modelShipBody.GetComponent().PlayOneShot(AudioType.TH_RetrieveModelShip); } } }