TEST: playermoves not synched in same second
This commit is contained in:
parent
a8c42fa0b0
commit
5df7fd3dac
@ -31,7 +31,7 @@ class TimerComponent: GKComponent {
|
|||||||
|
|
||||||
func timeLeft() -> Int {
|
func timeLeft() -> Int {
|
||||||
let remainingSeconds = Int(endTime.timeIntervalSince(Date()))
|
let remainingSeconds = Int(endTime.timeIntervalSince(Date()))
|
||||||
if(remainingSeconds < 0 ){
|
if(remainingSeconds < 0 && DataService.sharedInstance.didReceiveAllData()){
|
||||||
startWithDuration(duration: duration)
|
startWithDuration(duration: duration)
|
||||||
}
|
}
|
||||||
return remainingSeconds
|
return remainingSeconds
|
||||||
|
Loading…
Reference in New Issue
Block a user