Add backbone for card creation and implement Camera minigame mechanics

This commit is contained in:
Michal Pikulski
2025-10-10 14:31:51 +02:00
parent d9039ce655
commit 0c5546efd2
107 changed files with 10490 additions and 280 deletions

View File

@@ -20,7 +20,7 @@ namespace Minigames.DivingForPictures
private float maxScale = 1.2f;
private float baseScale = 1f;
private Camera mainCamera;
private UnityEngine.Camera mainCamera;
private BubblePool parentPool;
// Coroutine references
@@ -48,7 +48,7 @@ namespace Minigames.DivingForPictures
}
// Cache camera reference
mainCamera = Camera.main;
mainCamera = UnityEngine.Camera.main;
}
private void OnEnable()
@@ -78,7 +78,7 @@ namespace Minigames.DivingForPictures
/// <summary>
/// Resumes all bubble behaviors
/// </summary>
public void Resume()
public void DoResume()
{
if (!_isPaused) return; // Already running
@@ -94,7 +94,7 @@ namespace Minigames.DivingForPictures
/// </summary>
private void StartBubbleBehavior()
{
if (_isPaused) return; // Don't start if paused
if (_isPaused || !isActiveAndEnabled) return; // Don't start if paused
_movementCoroutine = StartCoroutine(MovementCoroutine());
_wobbleCoroutine = StartCoroutine(WobbleCoroutine());