< Summary

Class:MapUserIcon
Assembly:MapRenderer
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/MapRenderer/MapUserIcon.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:18
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Populate(...)0%2100%
LateUpdate()0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/MapRenderer/MapUserIcon.cs

#LineLine coverage
 1using DCL.Helpers;
 2using UnityEngine;
 3
 4public class MapUserIcon : MonoBehaviour
 5{
 6    private Player trackedPlayer;
 7
 08    public void Populate(Player status) { trackedPlayer = status; }
 9
 10    private void LateUpdate()
 11    {
 012        if (trackedPlayer == null)
 013            return;
 14
 015        var gridPosition = Utils.WorldToGridPositionUnclamped(trackedPlayer.worldPosition + CommonScriptableObjects.worl
 016        transform.localPosition = MapUtils.GetTileToLocalPosition(gridPosition.x, gridPosition.y);
 017    }
 18}

Methods/Properties

Populate(Player)
LateUpdate()