예제 #1
0
        /// <summary>
        /// Spawn power up after breaking block
        /// </summary>
        private void SpawnPowerUp()
        {
            PowerUp randomPowerUp = _gameScene.PowerUpsLibrary.GetRandomPowerUp();

            if (randomPowerUp != null)
            {
                _gameScene.AddPowerUp(Instantiate(randomPowerUp, transform.position, Quaternion.identity, _gameScene.CanvasTransform));
            }
        }