public static void PlayerPrefsKeyNow()
	{
		var asset = PlayerPrefsKey.GetInstance ();
		EditorUtility.FocusProjectWindow();
		Selection.activeObject = asset;
	}
Exemple #2
0
 void OnCollisionEnter2D(Collision2D coll)
 {
     countCollision++;
     PlayerPrefs.SetInt(PlayerPrefsKey.GetInstance().countBallHitKey, countCollision);
 }
Exemple #3
0
 void OnEnable()
 {
     ballHitText.text = PlayerPrefs.GetInt(PlayerPrefsKey.GetInstance().countBallHitKey).ToString();
 }
Exemple #4
0
 void Awake()
 {
     rigidbodyBall  = GetComponent <Rigidbody2D> ();
     countCollision = PlayerPrefs.GetInt(PlayerPrefsKey.GetInstance().countBallHitKey);
 }