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 {
|
||||
let remainingSeconds = Int(endTime.timeIntervalSince(Date()))
|
||||
if(remainingSeconds < 0 ){
|
||||
if(remainingSeconds < 0 && DataService.sharedInstance.didReceiveAllData()){
|
||||
startWithDuration(duration: duration)
|
||||
}
|
||||
return remainingSeconds
|
||||
|
Loading…
Reference in New Issue
Block a user