26 lines
552 B
C#
26 lines
552 B
C#
using AppleHills.Core.Interfaces;
|
|
using UnityEngine;
|
|
|
|
namespace Minigames.DivingForPictures.Utilities
|
|
{
|
|
public class BottlePauser : MonoBehaviour, IPausable
|
|
{
|
|
[SerializeField] private WobbleBehavior wobbleReference;
|
|
|
|
private void Start()
|
|
{
|
|
DivingGameManager.Instance.RegisterPausableComponent(this);
|
|
}
|
|
|
|
public void Pause()
|
|
{
|
|
wobbleReference.enabled = false;
|
|
}
|
|
|
|
public void DoResume()
|
|
{
|
|
wobbleReference.enabled = true;
|
|
}
|
|
}
|
|
}
|