Question by
Hoomanity · Apr 06, 2020 at 08:15 PM ·
c#unity 2dinstantiate prefabdestroy objectpong
After a set number of score points, destroying a ball and replacing it with a smaller ball with the same script and a smaller circle collider
I have tried to make a method "change" where after 3 points earned by the player, I would destroyimmediate(ball) and then I also have it to instantiate(smaller ball). So far I can destroy the bigger ball. But if I try to add on the instantiate part, it flags me. The goal is to have the ball get smaller and harder to hit as you gain more points in the level.
Comment