mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 03:32:47 +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;
|
|||
|
}
|
|||
|
}
|