private void Awake() { // Since we already have SpeedHackDetector in our scene, we may use settings we set // there in inspector. Just avoid them while calling StartDetection, like this: // SpeedHackDetector.StartDetection(OnSpeedHackDetected); // we may react on saves alteration ObscuredPrefs.onAlterationDetected = SavesAlterationDetected; // and even may react on foreign saves (from another device) ObscuredPrefs.onPossibleForeignSavesDetected = ForeignSavesDetected; obscuredVector3Test = GetComponent<ObscuredVector3Test>(); obscuredFloatTest = GetComponent<ObscuredFloatTest>(); obscuredIntTest = GetComponent<ObscuredIntTest>(); obscuredStringTest = GetComponent<ObscuredStringTest>(); obscuredPrefsTest = GetComponent<ObscuredPrefsTest>(); detectorsUsageExample = FindObjectOfType<DetectorsUsageExample>(); }
private void Awake() { // Since we already have SpeedHackDetector in our scene, we may use settings we set // there in inspector. Just avoid them while calling StartDetection, like this: // SpeedHackDetector.StartDetection(OnSpeedHackDetected); // we may react on saves alteration ObscuredPrefs.onAlterationDetected = SavesAlterationDetected; // and even may react on foreign saves (from another device) ObscuredPrefs.onPossibleForeignSavesDetected = ForeignSavesDetected; obscuredVector3Test = GetComponent <ObscuredVector3Test>(); obscuredFloatTest = GetComponent <ObscuredFloatTest>(); obscuredIntTest = GetComponent <ObscuredIntTest>(); obscuredStringTest = GetComponent <ObscuredStringTest>(); obscuredPrefsTest = GetComponent <ObscuredPrefsTest>(); detectorsUsageExample = FindObjectOfType <DetectorsUsageExample>(); }