< Summary

Class:UIElementMouseCapturer
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/UI/UIElementMouseCapturer.cs
Covered lines:0
Uncovered lines:11
Coverable lines:11
Total lines:18
Line coverage:0% (0 of 11)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:3
Method coverage:0% (0 of 3)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
OnPointerEnter(...)0%2100%
OnPointerExit(...)0%2100%
OnDisable()0%2100%

File(s)

/github/workspace/Assets/Scripts/UI/UIElementMouseCapturer.cs

#LineLine coverage
 1using UnityEngine;
 2using UnityEngine.EventSystems;
 3
 4public class UIElementMouseCapturer : EventTrigger {
 05  public override void OnPointerEnter(PointerEventData eventData) {
 06    InputManager.Instance.MouseActive = false;
 07    base.OnPointerEnter(eventData);
 08  }
 9
 010  public override void OnPointerExit(PointerEventData eventData) {
 011    InputManager.Instance.MouseActive = true;
 012    base.OnPointerExit(eventData);
 013  }
 14
 015  public void OnDisable() {
 016    OnPointerExit(null);
 017  }
 18}