CreateLevel 函数修改
This commit is contained in:
@@ -63,7 +63,7 @@ struct ContentView: View {
|
||||
currentEmoji = allEmoji.shuffled()
|
||||
withAnimation(.spring(duration: 0.75)) {
|
||||
leftCard = Array(currentEmoji[0..<itemCount]).shuffled()
|
||||
rightCard = Array(currentEmoji[itemCount + 1 ..< itemCount + itemCount] + [currentEmoji[0]]).shuffled()
|
||||
rightCard = Array(currentEmoji[itemCount + 1..<itemCount + itemCount] + [currentEmoji[0]]).shuffled()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user