From 52219deef964d2fdfe0f6fc7d4e6d224c3870399 Mon Sep 17 00:00:00 2001 From: Hazim Bin Ijaz Date: Thu, 4 Sep 2025 17:08:49 +0500 Subject: [PATCH] Added camera shake --- Assets/Scripts/ChaseOn/ChasePlayerController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/ChaseOn/ChasePlayerController.cs b/Assets/Scripts/ChaseOn/ChasePlayerController.cs index 58940ff..4d6f295 100644 --- a/Assets/Scripts/ChaseOn/ChasePlayerController.cs +++ b/Assets/Scripts/ChaseOn/ChasePlayerController.cs @@ -1,4 +1,5 @@ using System.Collections; +using DG.Tweening; using UnityEngine; /// @@ -469,7 +470,7 @@ public class ChasePlayerController : MonoBehaviour public void OnObstacleHit() { if (waitingForGameOver) return; - + Camera.main.DOShakePosition(0.25f, new Vector3(0.15f,0.15f,0.15f),20); if (Time.time - lastObstacleHitTime <= secondHitWindow) { waitingForGameOver = true;