string _FIlestr = Application.dataPath+ "/playerInventory.json";if (System.IO.File.Exists(_FIlestr)){//파일존재}else{//파일없음}string _FIlestr = Application.dataPath+ "/playerInventory";주의 이런식으로 경로에서 확장자를 빼면 무조건 파일이 없다고 나온다
댓글 없음:
댓글 쓰기