코드 작성using System.Collections;using UnityEngine;public class RhythmGame : MonoBehaviour{ public AudioClip musicClip; // 게임 음악 public float beatInterval = 1.0f; // 음악의 비트 간격 (초 단위) public KeyCode inputKey = KeyCode.Space; // 입력 받을 키 private AudioSource audioSource; private float songTime; // 현재 음악 진행 시간 private bool canInput = true; // 입력을 받을 수 있는 상태인지 여부 v.....