Clean up IPausable interafaces a little bit and start refactoring the pause-game flow in the minigame
This commit is contained in:
@@ -8,8 +8,6 @@ namespace Minigames.DivingForPictures.Utilities
|
||||
[SerializeField] private RockFollower rockReference;
|
||||
[SerializeField] private WobbleBehavior rockWobbleReference;
|
||||
|
||||
private bool isPaused = false;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
DivingGameManager.Instance.RegisterPausableComponent(this);
|
||||
@@ -19,16 +17,12 @@ namespace Minigames.DivingForPictures.Utilities
|
||||
{
|
||||
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