mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-29 12:21:25 +00:00
17 lines
432 B
C#
17 lines
432 B
C#
using QSB.Messaging;
|
|
using QSB.WorldSync;
|
|
|
|
namespace QSB.ModelShip.Messages;
|
|
|
|
public 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);
|
|
}
|
|
}
|