Hi Everyone,
I Have a problem with that js script, i’m trying to save a variable in PlayerPrefs but it doesn’t works…
When i’m checking the resuld with a Debug.Log the variable become 0… Help !!
Here is my scrpit:
#pragma strict
var teste : float = 0.3;
function testes () {
PlayerPrefs.SetFloat("teste", teste);
Debug.Log("etat du volume " + PlayerPrefs.GetInt("teste"));
}
Thanks You for you’re patience…