TEST: playermoves not synched in same second

This commit is contained in:
Aldin Duraki 2020-05-20 23:46:40 +02:00
parent a8c42fa0b0
commit 5df7fd3dac

View File

@ -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