Inherits KeepAliveBehaviour< T >.
Base class for all detectors.
◆ autoStart
Allows to start detector automatically. Otherwise, you'll need to call StartDetection() method to start it.
Useful in conjunction with proper Detection Event configuration in the inspector. Allows to use detector without writing any code except the actual reaction on cheating.
◆ autoDispose
Detector component will be automatically disposed after firing callback if enabled. Otherwise, it will just stop internal processes.
On dispose Detector follows 2 rules:
- if Game Object's name is "Anti-Cheat Toolkit": it will be automatically destroyed if no other Detectors left attached regardless of any other components or children;
- if Game Object's name is NOT "Anti-Cheat Toolkit": it will be automatically destroyed only if it has neither other components nor children attached;
◆ keepAlive
Will survive new level (scene) load if checked. Otherwise it will be destroyed.
On dispose Behaviour follows 2 rules:
- if Game Object's name is "Anti-Cheat Toolkit": it will be automatically destroyed if no other Behaviours left attached regardless of any other components or children;
- if Game Object's name is NOT "Anti-Cheat Toolkit": it will be automatically destroyed only if it has neither other components nor children attached;
◆ IsCheatDetected
Indicates if cheat was detected by this detector.
◆ IsStarted
Allows to check if detector is started (stays true even when it's paused).
◆ IsRunning
Allows to check if detection is currently running and not paused.
◆ Instance
|
staticgetprotected setinherited |
Allows reaching public properties from code. Can be null if behaviour does not exist in scene or if accessed at or before Awake phase.
◆ CheatDetected
Subscribe to this event to get notified when cheat will be detected.