こんな感じにPlayerPrefsを使うと簡単にスコア情報を保存出来ます。 var Score : int = 0; function Awake () { Score = PlayerPrefs.GetInt("Score"); } function OnGUI () { if (GUI.Button(Rect(5, 5, 200, 50), "+1")) { Score++; PlayerPrefs.SetInt("Score", Score); } if (GUI.Button(Rect(5, 60, 200, 50), "Data Clear")) { Score = 0; PlayerPrefs.DeleteKey("Score"); } GUI.Label(Rect(5, Screen.height-20, Screen.width-10, 50), "Scroe:"+Scor
![ゲームのスコア情報などを簡単に保存出来るPlayerPrefsクラス - 強火で進め](https://cdn-ak-scissors.b.st-hatena.com/image/square/4584bb1d5b94e12bf8603b78d90d78b5763d53b3/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fn%2Fnakamura001%2F20110712%2F20110712003527.png)