One time reward

Hi, I want to make two button with Instagram and Youtube, to reward players with 100coins but only one time and after that, text with 100coins to dissapear, how can I do that?

Please show your current code for launching Instragram and YouTube from a button click, and your current reward system.

1 Like

Split this into separate problems.

  • You’ve got the buttons which open the two sites. Figure that part out for whatever platform you are using which you haven’t mentioned (you’d likely do it differently depending on the platform).
  • You’ve got applying 100 coins, which entirely depends on your coin system, which again you haven’t mentioned.
  • You’ve got tracking that the player has pressed one of these buttons, which you’d probably do using PlayerPrefs unless you want to track this on your own server (see the numerous threads on PlayerPrefs or tutorials).
  • Lastly you’ve got making buttons disappear, which the easy way would be to just disable their GameObjects with gameObject.SetActive(false);.