private void DoNotifyEntity(MsgDoNotifyEntity message)
        {
            if (!_entityManager.TryGetEntity(message.Entity, out var entity))
            {
                return;
            }

            PopupMessage(_eyeManager.WorldToScreen(entity.Transform.GridPosition), message.Message);
        }
Beispiel #2
0
        private void DoNotifyEntity(MsgDoNotifyEntity message)
        {
            if (!_entityManager.TryGetEntity(message.Entity, out var entity))
            {
                return;
            }

            PopupMessage(_eyeManager.CoordinatesToScreen(entity.Transform.Coordinates), message.Message);
        }
Beispiel #3
0
        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);
        }