예제 #1
0
        /// <summary>
        /// 初期化
        /// </summary>
        /// <param name="note">ノート情報</param>
        /// <param name="judgeTime">判定時間</param>
        public virtual void Initialize(NoteJsonData note, float judgeTime)
        {
            JsonData = note;
            IntType  = GetNoteType(note);

            switch (note.horizontalPosition.Denominator)
            {
            case 24:
                LanePosition = note.horizontalPosition.Numerator;
                Size         = note.horizontalSize;
                break;

            case 6:
                LanePosition = note.horizontalPosition.Numerator * 4;
                Size         = note.horizontalSize * 4;
                break;

            default:
                Debug.LogWarning($"ノーツの位置が不正です: {note}");
                break;
            }

            JudgeTime = judgeTime;
        }
예제 #2
0
 protected abstract int GetNoteType(NoteJsonData noteJsonData);