Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Save game script С#

Discussion in 'Scripting' started by Tadynas, Jul 2, 2015.

  1. Tadynas

    Tadynas

    Joined:
    Jun 16, 2015
    Posts:
    35
    Hello,
    I want to make a purchase in game. Is there any way to save purchase? Even when game restarted. Thanks :)
     
  2. GNGification

    GNGification

    Joined:
    Oct 24, 2013
    Posts:
    59
    You could take a look at Unity's playerprefs, just google it.

    Or you could write your own system to save the data, I think there are lots of tutorials for both, google ;)
     
  3. Tadynas

    Tadynas

    Joined:
    Jun 16, 2015
    Posts:
    35
    Yes I know that, but maybe there's any way to save scene by pressing button?