void Start() { bool isOk = false; if (MUSIC_FOLDER_PATH == null) { MUSIC_FOLDER_PATH = config.getFolderPath(); } musicSelect = this.GetComponent <MusicSelect>(); musicSelectSaveFileLoader = this.GetComponent <MusicSelectSaveFileLoader>(); musicPlayAvator = this.GetComponent <MusicPlayAvator>(); musicSelectCache = this.GetComponent <MusicSelectCache>(); //もしavatorがtrueならオブジェクトをアクティブにする if (isAvator) { isAvator = musicPlayAvator.changeAvatorMode(); } //全描画 isOk = allRedraw(MUSIC_FOLDER_PATH); //カテゴリーの描画 redrawCategoryLabel(this.category); //スタートフラグtrue isReady = isOk; //画面表示前にSEが表示されてしまうので、コールチンで遅らせて再生 StartCoroutine(startSeDelayMethod(2.0f, SE_START)); Bm98Debug.Instance.Log(MUSIC_FOLDER_PATH); Bm98Debug.Instance.Log("folderCount = " + this.folderCount.ToString()); }
private void init() { Application.targetFrameRate = FRAME_RATE; bmsConverter = this.GetComponent <BmsConverter>(); musicPlay = this.GetComponent <MusicPlay>(); musicPlayPower = this.GetComponent <MusicPlayPower>(); musicPlayData = this.GetComponent <MusicPlayData>(); musicPlayAvator = this.GetComponent <MusicPlayAvator>(); animationManager = GameObject.Find("AnimationManager").GetComponent <AnimationManager>(); //MUSIC_FOLDER_PATH = config.getFolderPath(); MUSIC_OBJ_Y = getMusicObjectY(); setMusicData(dictMusicData); frameCount = 0; if (dictMusicData != null) { this.music_folder = dictMusicData["music_folder"]; this.music_bms = dictMusicData["music_bms"]; } //もしisAvatorがtrueなら表示させる if (isAvator) { isAvator = musicPlayAvator.changeAvatorMode(); } }