// -------------------------------------------------- // SetUp // -------------------------------------------------- public void SetTuneData(TuneData data) { if (data == null) { return; } noteItems = data.noteItems; // ゲームロジックの作成 gameLogic = new LiveGameLogic(); gameLogic.noteItems = data.noteItems; userAction = new UserAction(); }
private void onLoadData(TuneData tuneData) { // セットアップ soundPlayer = (LiveSoundPlayer)Instantiate(soundPlayerPrefab); notePlayer.SetTuneData(tuneData); notePlayer.canvas = canvas; notePlayer.soundPlayer = soundPlayer; notePlayer.prefabFactory = prefabFactory; // ゲーム開始 canvas.StartGame(); soundPlayer.StartGame(); notePlayer.StartGame(); }
public void ClearTune(int _index, bool _clearToonVisuals) { //Debug.Log("Tune Cleared!"); if (_index == 0 && _clearToonVisuals) { UIManager.ClearTuneVisuals(); beatAnims = new List <BeatAnim>(); } tunes[_index] = new TuneData { tuneAllBeats = new List <BeatData>(), tuneTypeBeats = new List <List <BeatData> >(), tuneHalfDuration = currentTuneHalfDuration, }; for (int i = 0; i < numOfBeatTypes; i++) { tunes[_index].tuneTypeBeats.Add(new List <BeatData>()); } }