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. Dismiss Notice

Removed content

Discussion in 'Assets and Asset Store' started by Erdroy, Jun 9, 2013.

  1. Erdroy

    Erdroy

    Joined:
    Jan 12, 2013
    Posts:
    19
    Removed content
     
    Last edited: Nov 17, 2019
  2. Tapgames

    Tapgames

    Joined:
    Dec 1, 2009
    Posts:
    242
    Hi Erdroy, this looks interesting. I was searching for a way to save my coins and goodies rigidbodies in my game. I will try this one thanks!

    Cheers, Roy
     
  3. Erdroy

    Erdroy

    Joined:
    Jan 12, 2013
    Posts:
    19

    var coins_var : int = 888; //Coins
    PlayerPrefs.SetInt("Coins", coins_var);
    //Saving coins
    var coins = PlayerPrefs.GetIt("Coins"); //Loading coins
    You can change coins_var and coins on their :)
     
  4. Tapgames

    Tapgames

    Joined:
    Dec 1, 2009
    Posts:
    242

    Hi Erdroy, yeah that part is working :wink:

    I was talking about saving the prefab coins that are spawned so that the player can resume exactly where they left off :D

    Cheers, Roy
     
    Last edited: Jun 11, 2013