mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
17 lines
434 B
C#
17 lines
434 B
C#
|
using QSB.Messaging;
|
|||
|
using QSB.WorldSync;
|
|||
|
|
|||
|
namespace QSB.ModelShip.Messages;
|
|||
|
|
|||
|
internal class CrashModelShipMessage : QSBMessage
|
|||
|
{
|
|||
|
public CrashModelShipMessage() { }
|
|||
|
|
|||
|
public override void OnReceiveRemote()
|
|||
|
{
|
|||
|
var crashBehaviour = QSBWorldSync.GetUnityObject<ModelShipCrashBehavior>();
|
|||
|
crashBehaviour._crashEffect.Play();
|
|||
|
crashBehaviour.gameObject.GetComponent<OWAudioSource>().PlayOneShot(AudioType.TH_ModelShipCrash);
|
|||
|
}
|
|||
|
}
|