//レコードが端まで行って、逆の端に移動するときの処理 private void changeRecordData(GameObject record, int listCount) { listShowRecordFolderCount = makeListShowRecord(showRecordMidNum, listMusicDict.Count); int folderCount = listShowRecordFolderCount[listCount]; RecordObject rd = record.GetComponent <RecordObject>(); Debug.Log("midNum : " + showRecordMidNum + " show_recoed_num :" + SHOW_RECOED_NUM); rd.setDictMusicData(listMusicDict[folderCount]); rd.showInfomation(); }
//レコードの作成 private GameObject makeRecord(Dictionary <string, string> dictMusicData, Vector3 pos, int localRecordCount) { GameObject obj = Instantiate(RECORD_OBJECT) as GameObject; RecordObject rd = obj.GetComponent <RecordObject>(); rd.setDictMusicData(dictMusicData); rd.setLocalRecordCount(localRecordCount); rd.showInfomation(); obj.transform.position = pos; return(obj); }