mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-28 18:25:18 +00:00
18 lines
426 B
C#
18 lines
426 B
C#
using QSB.Messaging;
|
|
using QSB.WorldSync;
|
|
|
|
namespace QSB.ShipSync.Messages;
|
|
|
|
internal class ReactorCountdownMessage : QSBMessage<float>
|
|
{
|
|
public ReactorCountdownMessage(float countdown) : base(countdown) { }
|
|
|
|
public override void OnReceiveRemote()
|
|
{
|
|
var reactor = QSBWorldSync.GetUnityObject<ShipReactorComponent>();
|
|
reactor._criticalCountdown = Data;
|
|
reactor._criticalTimer = Data;
|
|
reactor.enabled = true;
|
|
}
|
|
}
|