비트 찍기 완료 및 클로드를 통한 api작업
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class Cube : MonoBehaviour
|
||||
{
|
||||
void Update()
|
||||
{
|
||||
// Spawner.cs의 noteSpeed(2.0)와 이 숫자가 반드시 같아야 타이밍이 맞습니다.
|
||||
transform.position += Time.deltaTime * transform.forward * 2;
|
||||
|
||||
// 화면 밖으로 나간 노트 자동 삭제 (최적화)
|
||||
if (transform.position.z < -5f)
|
||||
{
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user