From b9a01bbf20bc2a3ecff151e73ea8dea2fef27c41 Mon Sep 17 00:00:00 2001 From: Pasha Date: Thu, 22 Jan 2026 18:13:40 +0000 Subject: [PATCH] Made the annimation adaptive --- Assets/Scripts/PlayerController.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index c41d693..5c1cdd0 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -68,7 +68,14 @@ namespace InterfaceOff.WorldScene transform.rotation = Quaternion.Euler(rotation.x, rotation.y, 0); /* Updates the blocking state */ - SetAnimationState(!Frames[FrameIndex].ShootGun); + if (ActiveWindowSpawner.SpawnedWindowCount < MAX_WINDOWS) + { + SetAnimationState(!Frames[FrameIndex].ShootGun); + } + else + { + SetAnimationState(true); + } } }