/* public void AddPoint (int scoin) { score = score + scoin; // Debug.Log ("coin" + coin); // score = score + coin; } */ // ハイスコアの保存 public void Save () { Debug.Log("Score.Save() called!!!!"); // ハイスコアを保存する PlayerPrefs.SetInt (highScoreKey, highScore); PlayerPrefs.Save (); //サーバーにハイスコアを保存する _name = PlayerPrefs.GetString ("Name"); _uuid = PlayerPrefs.GetString ("Uuid"); currentHighScore = new NCMB.HighScore( highScore, _name, _uuid ); currentHighScore.updateScore(); //_uuidの二重登録を防ぐ // ゲーム開始前の状態に戻す Initialize (); }