Example #1
0
 private void FallIntoHole()
 {
     FallingToHole(true);
     IntoHole(BallID);
     PoolBallsContainer.Deregister(this);
     gameObject.SetActive(false);
 }
Example #2
0
 public void Restart()
 {
     _ui.ActivateGameOver(false);
     PoolBallsContainer.RemoveAll();
     SceneManager.LoadScene(1);
 }
Example #3
0
 protected override void RunStart()
 {
     base.RunStart();
     PoolBallsContainer.Register(this);
 }
Example #4
0
 public void BackToMenu()
 {
     SceneManager.LoadScene(0);
     PoolBallsContainer.RemoveAll();
 }