Skip to content
Snippets Groups Projects
Commit d1734cac authored by lukasWoyke's avatar lukasWoyke
Browse files

Renamed haptic feedback function.

parent cefa4e49
No related branches found
No related tags found
2 merge requests!62Fix master,!60Code cleanup lukas fix
......@@ -10,7 +10,7 @@ import CoreHaptics
class HapticResponseController {
// Feedback for grabbing.
static func grabNotSucceedFeedback() {
static func characterCustomizationExeeded() {
let generator = UIImpactFeedbackGenerator(style: .rigid)
generator.impactOccurred()
}
......
......@@ -133,19 +133,19 @@ class CharacterControlSettingViewController: UIViewController {
if bodyCounter > 0 {
bodyCounter -= 1
} else {
HapticResponseController.grabNotSucceedFeedback()
HapticResponseController.characterCustomizationExeeded()
}
case .LeftHand:
if handCounter > 0 {
handCounter -= 1
} else {
HapticResponseController.grabNotSucceedFeedback()
HapticResponseController.characterCustomizationExeeded()
}
case.LeftUpperArm:
if armCounter > 0 {
armCounter -= 1
} else {
HapticResponseController.grabNotSucceedFeedback()
HapticResponseController.characterCustomizationExeeded()
}
default: return
}
......@@ -159,19 +159,19 @@ class CharacterControlSettingViewController: UIViewController {
if bodyCounter < bodies.count - 1{
bodyCounter += 1
} else {
HapticResponseController.grabNotSucceedFeedback()
HapticResponseController.characterCustomizationExeeded()
}
case .LeftHand:
if handCounter < hands.count - 1 {
handCounter += 1
} else {
HapticResponseController.grabNotSucceedFeedback()
HapticResponseController.characterCustomizationExeeded()
}
case.LeftUpperArm:
if armCounter < arms.count - 2 {
armCounter += 1
} else {
HapticResponseController.grabNotSucceedFeedback()
HapticResponseController.characterCustomizationExeeded()
}
default:
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment