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 Start() { 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; } }