Quiz Master API KEY.unitypackage 다운로드
https://drive.google.com/file/d/1UeUTcu71bJKz2uKtRAr4u_8sfsI5KcMd/view?usp=sharing
더블클릭 해서 Import

ChatGPTClient.cs (분홍 부분 변경)

private string apiKey;
private void Awake()
{
apiKey = LoadFromResources();
}
private string LoadFromResources()
{
try
{
TextAsset configFile = Resources.Load<TextAsset>("config");
if (configFile != null)
{
string[] lines = configFile.text.Split('\\n');
foreach (string line in lines)
{
if (line.StartsWith("OPENAI_API_KEY="))
{
return line.Substring("OPENAI_API_KEY=".Length).Trim();
}
}
}
}
catch (Exception e)
{
Debug.LogWarning($"Resources 설정 파일 로드 실패: {e.Message}");
}
return "";
}
.gitignore 파일 추가 (Git에 못 올라가도록 수정)
