using QSB.Messaging; using QSB.WorldSync; namespace QSB.ModelShip.Messages; public class CrashModelShipMessage : QSBMessage { public CrashModelShipMessage() { } public override void OnReceiveRemote() { var crashBehaviour = QSBWorldSync.GetUnityObject(); crashBehaviour._crashEffect.Play(); crashBehaviour.gameObject.GetComponent().PlayOneShot(AudioType.TH_ModelShipCrash); } }