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