private IEnumerator LoadBms() { yield return(new WaitUntil(() => BMSCapacity.Instance.IsDone)); _bms = BMSCapacity.Instance; StartCoroutine(ConvertBGM()); }
private IEnumerator LoadBms() { yield return(new WaitUntil(() => BMSCapacity.Instance.IsDone)); _bms = BMSCapacity.Instance; _bpms = (SortQueue <BPM>)_bms.BPMs.Clone(); while (!NodeCreator.Instance._doneLoading) { yield return(null); } _isDone = true; }
private void Start() { KeyboardManager.LoadAll(); _bms = BMSCapacity.Instance; if (SceneChanger.KeyStatus == MusicList.MusicInfo.KeyStatus.Key7) { for (var i = 1; i <= 7; i++) { _inputKey.Add(i, KeyboardManager.GetKeyCode(i)); } } else { for (var i = 2; i <= 6; i++) { _inputKey.Add(i - 1, KeyboardManager.GetKeyCode(i)); } } _keyStatuses = new KeyStatus[_inputKey.Count]; _keyDownDetect = _inputKey.Where(x => Input.GetKeyDown(x.Value)).Select(x => x.Key - 1); _keyPressDetect = _inputKey.Where(x => Input.GetKey(x.Value)).Select(x => x.Key - 1); _keyUpDetect = _inputKey.Where(x => (!Input.GetKeyDown(x.Value) && !Input.GetKey(x.Value))) .Select(x => x.Key - 1); _keysNotes[0] = _bms.Notes.Where(x => x.Index == 0); _keysNotes[1] = _bms.Notes.Where(x => x.Index == 1); _keysNotes[2] = _bms.Notes.Where(x => x.Index == 2); _keysNotes[3] = _bms.Notes.Where(x => x.Index == 3); _keysNotes[4] = _bms.Notes.Where(x => x.Index == 4); _keysNotes[5] = _bms.Notes.Where(x => x.Index == 5); _keysNotes[6] = _bms.Notes.Where(x => x.Index == 6); _removeList = new List <Note>(); _updateData = null; _updateData += ScoreUpdate; _updateData += CollectPercentText.Instance.UpdateData; _isAuto = SceneChanger.AutoPlay; }
private IEnumerator LoadBms() { yield return(new WaitUntil(() => BMSCapacity.Instance.IsDone)); _bms = BMSCapacity.Instance; }