コード例 #1
0
        public void GoToNextLevel()
        {
            _brickManager.BrickHealth++;
            _currentLevel++;
            _innerRing.IncreaseLevel();

            _brickManager.StartShockwave();
        }
コード例 #2
0
        public void TriggerPowerup(GameObject powerup)
        {
            _soundManager.PlayPowerupSound();

            switch (powerup.GetComponent <PowerupScript>().PowerupTag)
            {
            case "Ball split":
                break;

            case "Extra paddle":
                _paddleManager.CreateNewPaddle();
                break;

            case "Power ball":
                _brickManager.SetPowerModeEnabled(true);
                break;

            case "Slow ball":
                _gameManager.DecreaseBallSpeed();
                break;

            case "Laser gun":
                break;

            case "Wide paddle":
                _paddleManager.WidenPaddles();
                break;

            case "Shockwave":
                _brickManager.StartShockwave();
                break;

            case "Shield":
                break;
            }

            ResetPowerup(powerup);
        }