If Not (m_snake Is Nothing) Then
If Not m_snake.PointOnSnake(foodpt) Then Exit Do
Else
Exit Do
End If
Loop
...全文
1112打赏收藏
这段代码怎么写,急啊,在线等
vb.net的代码,改为C# 怎么写,主要是do,loop, 和exit do ,谢谢了 Do foodpt = GetRandomPoint() If Not (m_snake Is Nothing) Then If Not m_snake.PointOnSnake(foodpt) Then Exit Do Else Exit Do End If Loop