以下のスクリプトでそれぞれの行が何を表しているのか、コメントアウトして教えてほしいです!お願いします!
lang
1using UnityEngine; 2using System.Collections; 3using UnityEngine.SocialPlatforms; 4 5public class Button_GameCenter : MonoBehaviour { 6 7 public Vector3 checkScale; 8 9 void OnMouseDown() { 10 audio.Play(); 11 checkScale = transform.localScale; 12 transform.localScale += new Vector3(-0.1F, -0.1F, -0.1F); 13//③ 14 Social.LoadScores("string leaderboardID", scores => { 15 if (scores.Length > 0) { 16 17 Debug.Log ("保有: " + scores.Length + " 個のスコア"); 18 string myScores = "Leaderboard:\n"; 19 foreach (IScore score in scores) 20 myScores += "\t" + score.userID + " " + score.formattedValue + " " + score.date + "\n"; 21 22 Debug.Log (myScores); 23 } 24 else 25 26 Debug.Log ("スコアはロードされませんでした。"); 27 }); 28 29 Social.ShowLeaderboardUI(); 30 31 } 32 33 void OnMouseUp() { 34 transform.localScale = checkScale; //④ 35 } 36 37}
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2015/04/23 05:36