private void OnEntityKilled(HalloweenHunt hunt) { if (!_isHalloweenActive) { return; } _isHalloweenActive = false; MagicPanel?.Call("UpdatePanel", Name, (int)UpdateEnum.Image); }
private bool CanShowPanel(HalloweenHunt hunt) { object result = Interface.Call("MagicPanelCanShow", Name, hunt); if (result is bool) { return((bool)result); } return(true); }
private void OnEntitySpawned(HalloweenHunt hunt) { NextTick(() => { if (!CanShowPanel(hunt)) { return; } _isHalloweenActive = true; MagicPanel?.Call("UpdatePanel", Name, (int)UpdateEnum.Image); }); }