Add backbone for card creation and implement Camera minigame mechanics
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user