Step 1: AntiCheat Prefab
Add the OPS\AntiCheat\Prefabs\AntiCheat.prefab to your first game scene.
Step 2: Detector
The ComputerTime Detector checks if some user adjusts his computer time to maybe cheat.
You can attach an delegate getting called when the computer time changed.
1 2 3 4 5 6 7 8 9 |
private void Awake() { ComputerTimeHackDetector.OnComputerTimeHackDetected += ComputerTimeHackDetector_OnComputerTimeHackDetected; } private void ComputerTimeHackDetector_OnComputerTimeHackDetected() { Text.text = "Time Hack Detected! Cheater modified its computertime!"; } |