// Unity using UnityEngine; namespace GUPS.AntiCheat.Demo { /// /// A simple ui component that displays the current threat level of the anti cheat monitor. /// public class UiThreatLevel : MonoBehaviour { /// /// The anti cheat monitor. /// public AntiCheatMonitor antiCheatMonitor; /// /// The debug text for the threat level. /// public UnityEngine.UI.Text threatLevelText; /// /// The debug text for the sensitivity level. /// public UnityEngine.UI.Text sensitivityLevelText; /// /// Update the threat level text. /// private void Update() { // Update the threat level text. if (this.antiCheatMonitor != null) { this.threatLevelText.text = this.antiCheatMonitor.ThreatLevel.ToString("0.00"); this.sensitivityLevelText.text = this.antiCheatMonitor.SensitiveLevel.ToString(); } } } }