< Summary

Class:Button_OnPointerDown
Assembly:HUDCommon
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/Common/Button_OnPointerDown.cs
Covered lines:1
Uncovered lines:0
Coverable lines:1
Total lines:14
Line coverage:100% (1 of 1)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
OnPointerDown(...)0%220100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/Common/Button_OnPointerDown.cs

#LineLine coverage
 1using UnityEngine;
 2using UnityEngine.Events;
 3using UnityEngine.EventSystems;
 4using UnityEngine.UI;
 5
 6/// <summary>
 7/// In oder to lock/unlock the cursor in the same frame a button is clicked we need to use OnPointerDown (event not acce
 8/// </summary>
 9public class Button_OnPointerDown : Button
 10{
 11    public event UnityAction onPointerDown;
 12
 213    public override void OnPointerDown(PointerEventData eventData) { onPointerDown?.Invoke(); }
 14}