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

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

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