내일배움캠프(Unity)
내일배움캠프 게임개발(Unity) 사전캠프 20일차(마지막날) TIL
빵어
2023. 10. 27. 20:54
오늘은 사전캠프 마지막날~
튜터님과의 QnA 세션이 있었다.
오늘도 어김없이 사천성을 만들거다
사천성 만들기
1. 오류 수정
일시정지 시 카드가 눌리지 않도록 코드를 수정했다.
if (hit && Time.timeScale == 1f)
{
cardManager.MatchCard(hit.collider.gameObject);
...
맞춰지지 않아야 할 카드가 맞춰지는 현상을 수정했다.
bool CheckCardConnectionRecursive(int turnCount, bool[] visited, int tempNum, int dirNum)
{
...
if (nx < 0 || nx >= xCount || ny < 0 || ny >= yCount)
continue;
...
nx >= xCount이어야 하는데
nx > xCount로 되어있었다.
2. 배경음악
배경음악을 게임에 넣었다.
배경음악 파일을 Assets폴더에 Import하니
Errors during import of AudioClip Assets/파일이름.mp3:
이란 에러가 떴다.
구글링 해보니 같은 문제를 겪고 있는 사람들이 많았다. 버그라고는 하는데
다른 mp3 파일을 넣어보니 잘 작동하는 걸로 봐서 파일에 문제가 있는듯 하다.
https://forum.unity.com/threads/unspecified-error-during-import-of-audioclip-assets.312946/
Unspecified error during import of AudioClip Assets
I was just wondering if any one can tall me how to fix this error Unspecified error during import of AudioClip Assets? not sure why I am getting it but...
forum.unity.com