private void OnPowerSupply(EntityUid uid, LitOnPoweredComponent component, PowerNetBatterySupplyEvent args) { if (EntityManager.TryGetComponent <PointLightComponent>(uid, out var light)) { light.Enabled = args.Supply; } }
private void OnPowerChanged(EntityUid uid, LitOnPoweredComponent component, PowerChangedEvent args) { if (EntityManager.TryGetComponent <PointLightComponent>(uid, out var light)) { light.Enabled = args.Powered; } }