mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 00:32:43 +00:00
21 lines
489 B
C#
21 lines
489 B
C#
using QSB.Player;
|
|
|
|
namespace QSB.TriggerSync.WorldObjects
|
|
{
|
|
public class QSBEyeShuttleTrigger : QSBTrigger<EyeShuttleController>
|
|
{
|
|
public override void Init()
|
|
{
|
|
base.Init();
|
|
AttachedObject.OnEntry -= TriggerOwner.OnEnterShuttle;
|
|
AttachedObject.OnExit -= TriggerOwner.OnExitShuttle;
|
|
}
|
|
|
|
protected override void OnEnter(PlayerInfo player)
|
|
=> player.IsInEyeShuttle = true;
|
|
|
|
protected override void OnExit(PlayerInfo player)
|
|
=> player.IsInEyeShuttle = false;
|
|
}
|
|
}
|