private void DoNotifyEntity(MsgDoNotifyEntity message) { if (!_entityManager.TryGetEntity(message.Entity, out var entity)) { return; } PopupMessage(_eyeManager.WorldToScreen(entity.Transform.GridPosition), message.Message); }
private void DoNotifyEntity(MsgDoNotifyEntity message) { if (!_entityManager.TryGetEntity(message.Entity, out var entity)) { return; } PopupMessage(_eyeManager.CoordinatesToScreen(entity.Transform.Coordinates), message.Message); }
private void DoNotifyEntity(MsgDoNotifyEntity message) { if (_playerManager.LocalPlayer?.ControlledEntity == null || !_entityManager.TryGetEntity(message.Entity, out var entity)) { return; } PopupMessage(entity, _playerManager.LocalPlayer.ControlledEntity, message.Message); }