/// <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)); } }