Add backbone for card creation and implement Camera minigame mechanics
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using AppleHills.Core.Interfaces;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Minigames.DivingForPictures.Utilities
|
||||
{
|
||||
public class RockPauser : MonoBehaviour, IPausable
|
||||
{
|
||||
[SerializeField] private RockFollower rockReference;
|
||||
[SerializeField] private WobbleBehavior rockWobbleReference;
|
||||
|
||||
private bool isPaused = false;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
DivingGameManager.Instance.RegisterPausableComponent(this);
|
||||
}
|
||||
|
||||
public void Pause()
|
||||
{
|
||||
rockReference.enabled = false;
|
||||
rockWobbleReference.enabled = false;
|
||||
isPaused = true;
|
||||
}
|
||||
|
||||
public void DoResume()
|
||||
{
|
||||
rockReference.enabled = true;
|
||||
rockWobbleReference.enabled = true;
|
||||
isPaused = false;
|
||||
}
|
||||
|
||||
public bool IsPaused => isPaused;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user