Skip to content

Commit

Permalink
[Feat] 창문 화면에 호랑이 울음소리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
JYPjoy committed Dec 1, 2023
1 parent e0bd2e8 commit 63bc64d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,19 @@ extension WindowHoleViewController {
case .hand:
tigerHandHoleAnimationView.lottieView.accessibilityLabel = "손톱이 날카로운 호랑이 손"
HapticManager.shared?.playSplash()
SoundManager.shared.playSound(sound: .tiger)
LottieManager.shared.playAnimation(inView: tigerHandHoleAnimationView.lottieView, completion: nil)
LottieManager.shared.removeAnimation(inView: tigerHandHoleAnimationView.lottieView)
case .nose:
tigerNoseHoleAnimationView.lottieView.accessibilityLabel = "킁킁 거리고 있는 호랑이 코"
HapticManager.shared?.playSplash()
SoundManager.shared.playSound(sound: .tiger)
LottieManager.shared.playAnimation(inView: tigerNoseHoleAnimationView.lottieView, completion: nil)
LottieManager.shared.removeAnimation(inView: tigerNoseHoleAnimationView.lottieView)
case .tail:
tigerTailHoleAnimationView.lottieView.accessibilityLabel = "살랑살랑 흔들리는 호랑이 꼬리"
HapticManager.shared?.playSplash()
SoundManager.shared.playSound(sound: .tiger)
LottieManager.shared.playAnimation(inView: tigerTailHoleAnimationView.lottieView, completion: nil)
LottieManager.shared.removeAnimation(inView: tigerTailHoleAnimationView.lottieView)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class SoundManager {
enum SoundList: String {
case piano
case bell
case tiger
}

func playSound(sound: SoundList) {
Expand Down

0 comments on commit 63bc64d

Please sign in to comment.