Hi,
I have one question how to use the unity "seconds" in a Swift Playground.
I coded a countdown and want to make it as an countdown for 30 seconds.
The source code is quiet easy:
var countdown = 30
var start = 1
func countdown_running(value: Int) {
while start <= value {
print(start)
if start == 30 {
print("Finished")
}
start += 1
}
}
What I have to submit for counting seconds?
Thank you for your help!