Skip to content

Commit

Permalink
fixing gameParameters.showFixation indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Imperio authored and Felipe Imperio committed Nov 14, 2024
1 parent 4139794 commit 1786b38
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ios/FlankerNativeComponents/GameManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,15 @@ class GameManager {
updateButtonTitle()

if gameParameters.showFixation {
setEndTimeViewingImage(time: CACurrentMediaTime(), isStart: true, type: .fixations)
setEndTimeViewingImage(time: CACurrentMediaTime(), isStart: true, type: .fixations)

if let image = URL(string: gameParameters.fixation), gameParameters.fixation.contains("https") {
delegate?.updateFixations(image: image, isStart: true, typeTime: .fixations)
} else {
delegate?.updateText(text: gameParameters.fixation, color: .black, font: Constants.bigFont, isStart: true, typeTime: .fixations)
}
timerSetText = Timer(timeInterval: gameParameters.fixationDuration / 1000, target: self, selector: #selector(setText), userInfo: nil, repeats: false)
RunLoop.main.add(timerSetText!, forMode: .common)
if let image = URL(string: gameParameters.fixation), gameParameters.fixation.contains("https") {
delegate?.updateFixations(image: image, isStart: true, typeTime: .fixations)
} else {
delegate?.updateText(text: gameParameters.fixation, color: .black, font: Constants.bigFont, isStart: true, typeTime: .fixations)
}
timerSetText = Timer(timeInterval: gameParameters.fixationDuration / 1000, target: self, selector: #selector(setText), userInfo: nil, repeats: false)
RunLoop.main.add(timerSetText!, forMode: .common)
} else {
setText()
}
Expand Down

0 comments on commit 1786b38

Please sign in to comment.