this website을 도움으로 임의의 지하 감옥 생성기를 만들려고하는데 코드가 더 이상 작동하지 않는 것 같아서 수정해야합니다. 이제 C# 식별자 예상 오류가 발생합니다C# XNA 식별자가 필요합니다.
public Point PickRandomCellAndMarkItVisited()
{
Random rnd = new Random();
Point randomLocation = new Point(rnd.Next(1, 10), rnd.Next(1, 10));
this.[randomLocation] = true;
return randomLocation;
}
'this. [randomLocation] = true;'는 (는) 잘못된 코드입니다. 'this [randomLocation] = true;'당신이 링크하는 코드에서'PickRandomCellAndMarkItVisited' 메소드는'this' 다음에'.'을 갖지 않습니다 ... –