//楽曲の情報を表示 public void showMusic(MusicListFileData.MusicListElement aData) { mSelectedMusic = aData; mMusicData = DataFolder.loadScoreData(aData.file); //曲名 mTitleText.text = mMusicData.title; //選択中の難易度に合わせて表示更新 changeDifficult(mSelectedDifficult); //音声 playMusic(); //サムネイル DataFolder.loadThumbnailAsync(mMusicData.thumbnail, (aSprite) => { Sprite tSprite = SpriteCutter.setRatio(aSprite, 7, 6); mThumbnailRenderer.transform.localScale = new Vector3(7 / tSprite.bounds.size.x, 7 / tSprite.bounds.size.x, 1); mThumbnailRenderer.sprite = tSprite; }); }