< 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:20
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 System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4using UnityEngine.EventSystems;
 5
 6public class UIElementMouseCapturer : EventTrigger {
 07  public override void OnPointerEnter(PointerEventData eventData) {
 08    InputManager.Instance.mouseActive = false;
 09    base.OnPointerEnter(eventData);
 010  }
 11
 012  public override void OnPointerExit(PointerEventData eventData) {
 013    InputManager.Instance.mouseActive = true;
 014    base.OnPointerExit(eventData);
 015  }
 16
 017  public void OnDisable() {
 018    OnPointerExit(null);
 019  }
 20}