- Assets/_Game/ 하위로 게임 에셋 통합 - External/ 패키지 벤더별 분류 (Synty, Animations, UI) - 에셋 네이밍 컨벤션 확립 및 적용 (Data_Skill_, Data_SkillEffect_, Prefab_, Anim_, Model_, BT_ 등) - pre-commit hook으로 네이밍 컨벤션 자동 검사 추가 - RESTRUCTURE_CHECKLIST.md 작성 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
747 B
C#
24 lines
747 B
C#
using System.Threading.Tasks;
|
|
using UnityEngine;
|
|
|
|
namespace SQLite
|
|
{
|
|
public static class SQLiteAsyncExtensions
|
|
{
|
|
#if UNITY_WEBGL
|
|
// WebGL builds cannot use background threads, so use a
|
|
// TaskScheduler that executes tasks on Unity's main thread.
|
|
public static TaskScheduler TaskScheduler { get; private set; }
|
|
|
|
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
|
|
private static void InitializeTaskScheduler()
|
|
{
|
|
TaskScheduler = TaskScheduler.FromCurrentSynchronizationContext();
|
|
}
|
|
#else
|
|
// On all other platforms, use the default TaskScheduler
|
|
public static TaskScheduler TaskScheduler => TaskScheduler.Default;
|
|
#endif
|
|
}
|
|
}
|