从逻辑上讲,score前面要加self
func getScore(score: Int) {
self.score += score
if self.score > level * 100{
level += 1
print("enter")
}
}
func getScore(score: Int) {
self.score += score
if self.score > level * 100{
level += 1
print("enter")
}
}
2016-07-19