// Start is called before the first frame update void Start() { var accepted = PlayerPrefs.GetInt(policyKey, 0) == 1; if (accepted) { return; } SimpleGDPR.ShowDialog(new TermsOfServiceDialog(). SetTermsOfServiceLink("https://unity3d.com/legal/terms-of-service"). SetPrivacyPolicyLink("https://unity3d.com/legal/privacy-policy"), onMenuClosed); }
void Start() { bool acceptedBefore = PlayerPrefs.GetInt(PolicyKey, 0) == 1; if (acceptedBefore) { Accepted?.Invoke(); return; } SimpleGDPR.ShowDialog(new TermsOfServiceDialog(). SetPrivacyPolicyLink("https://helltraversers.wordpress.com/privacy-policy/"). SetTermsOfServiceLink("https://helltraversers.wordpress.com/terms-conditions/"), OnMenuClosed); }