Made the annimation adaptive

This commit is contained in:
2026-01-22 18:13:40 +00:00
parent b28dd6626c
commit b9a01bbf20

View File

@@ -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);
}
}
}