Accepting privacy policy button


I want to make a button the pop up at the beginning of my game that asks the user to accept the privacy policy but I can’t make it one time only and save it a prefab maybe.

I want it to pop only in the beginning and after accepting it in never pop up again every time the user opens the game.

Thank you.

Just save it in PlayerPrefs.

When the user clicks accept, do this:

 PlayerPrefs.SetInt("Accepted", 1);

and put this in the beginning of the game:

if(!PlayerPrefs.HasKey("Accepted") || PlayerPrefs.GetInt("Accepted") == 0) {
	//show privacy policy