// Use this for initialization void Start() { //ファイルを読み込み ScoreInfo.Score.Name = "Name " + nameCount; ScoreInfo.Read(); foreach (Score s in ScoreInfo.Scores) { Debug.Log(s.Name + " <=> Total :" + ScoreInfo.GetTotalScore(s)); } }
void Awake() { if (Instance != null) { enabled = false; DestroyImmediate(this); return; } Instance = this; ScoreInfo.Read(); }