コード例 #1
0
	public static void PlayerPrefsKeyNow()
	{
		var asset = PlayerPrefsKey.GetInstance ();
		EditorUtility.FocusProjectWindow();
		Selection.activeObject = asset;
	}
コード例 #2
0
 void OnCollisionEnter2D(Collision2D coll)
 {
     countCollision++;
     PlayerPrefs.SetInt(PlayerPrefsKey.GetInstance().countBallHitKey, countCollision);
 }
コード例 #3
0
ファイル: ShowBallHit.cs プロジェクト: reja123/BallSimulator
 void OnEnable()
 {
     ballHitText.text = PlayerPrefs.GetInt(PlayerPrefsKey.GetInstance().countBallHitKey).ToString();
 }
コード例 #4
0
 void Awake()
 {
     rigidbodyBall  = GetComponent <Rigidbody2D> ();
     countCollision = PlayerPrefs.GetInt(PlayerPrefsKey.GetInstance().countBallHitKey);
 }