Clean up IPausable interafaces a little bit and start refactoring the pause-game flow in the minigame
This commit is contained in:
@@ -7,8 +7,6 @@ namespace Minigames.DivingForPictures.Utilities
|
||||
{
|
||||
[SerializeField] private WobbleBehavior wobbleReference;
|
||||
|
||||
private bool isPaused = false;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
DivingGameManager.Instance.RegisterPausableComponent(this);
|
||||
@@ -17,15 +15,11 @@ namespace Minigames.DivingForPictures.Utilities
|
||||
public void Pause()
|
||||
{
|
||||
wobbleReference.enabled = false;
|
||||
isPaused = true;
|
||||
}
|
||||
|
||||
public void DoResume()
|
||||
{
|
||||
wobbleReference.enabled = true;
|
||||
isPaused = false;
|
||||
}
|
||||
|
||||
public bool IsPaused => isPaused;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user