Пример #1
0
    //////////////////////////////////////////////////////

    public void PlayGame()
    {
        IsPaused = false;
        WinCanvas.SetActive(false);
        LoseCanvas.SetActive(false);
        _ball         = BallManager.Instance.SpawnBall(Ball);
        _ballMovement = _ball.GetComponent <BallMovement>();
        _ballMovement.SetDefaultBallMovement();
    }
Пример #2
0
 void Start()
 {
     IsPaused = false;
     BlockManager.Instance.GameFinishedEvent += GameFinished;
     if (_sessionStorage.GameLoaded)
     {
         LoadGame(_sessionStorage.LoadCellIndex);
     }
     BlockManager.Instance.LoadLevel();
     if (!_sessionStorage.GameLoaded)
     {
         _ball         = BallManager.Instance.SpawnBall(Ball);
         _ballMovement = _ball.GetComponent <BallMovement>();
         _ballMovement.SetDefaultBallMovement();
     }
 }