23 lines
717 B
C#
Raw Normal View History

2022-01-12 19:43:48 -08:00
using QSB.Animation.NPC.WorldObjects;
using QSB.Player;
using QSB.WorldSync;
namespace QSB.TriggerSync.WorldObjects
2022-01-12 19:18:59 -08:00
{
public class QSBSolanumTrigger : QSBTrigger<NomaiConversationManager>
{
public override void Init()
{
base.Init();
AttachedObject.OnEntry -= TriggerOwner.OnEnterWatchVolume;
AttachedObject.OnExit -= TriggerOwner.OnExitWatchVolume;
}
2022-01-12 19:43:48 -08:00
protected override void OnEnter(PlayerInfo player)
2022-01-12 20:26:16 -08:00
=> TriggerOwner._solanumAnimController.GetWorldObject<QSBSolanumAnimController>().AddPlayerToHeadZone(player);
2022-01-12 19:43:48 -08:00
protected override void OnExit(PlayerInfo player)
2022-01-12 20:26:16 -08:00
=> TriggerOwner._solanumAnimController.GetWorldObject<QSBSolanumAnimController>().RemovePlayerFromHeadZone(player);
2022-01-12 19:18:59 -08:00
}
}