Revert "Merge pull request '리듬게임' (#5) from CatsRhythmGame into main"

This reverts commit 58385bf819, reversing
changes made to 8369e2ab51.
This commit is contained in:
skrwns304@gmail.com
2026-06-16 12:23:32 +09:00
parent 58385bf819
commit d7d5519fbf
2320 changed files with 154 additions and 251716 deletions

View File

@@ -1,43 +0,0 @@
using System;
using System.Threading;
using UnityEngine;
public static class Util
{
/// 특정 시간(초) 후에 액션을 실행
public static async Awaitable RunDelayed(float delay, Action action, CancellationToken token = default)
{
try
{
// 유니티 전용 비동기 대기
await Awaitable.WaitForSecondsAsync(delay, token);
// 함수 실행
action?.Invoke();
}
catch (OperationCanceledException)
{
// 취소되었을 때의 처리 (필요 시)
}
}
/// 다음 프레임에 액션을 실행
public static async Awaitable RunNextFrame(Action action, CancellationToken token = default)
{
try
{
await Awaitable.EndOfFrameAsync(token);
action?.Invoke();
}
catch (OperationCanceledException) { }
}
public static float NormalizeAngle(float angle)
{
while (angle > 180)
angle -= 360;
while (angle < -180)
angle += 360;
return angle;
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 414cb910207b7644a8bbb9be341333df