Question by
Hoomanity · Apr 07, 2020 at 07:47 AM ·
c#unity 2dinstantiate prefabdestroy objectpong
After a certain score reached, I want to switch a moving ball to be a smaller prefab ball with the same pong-like movement script. Possible?
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 redflags me. The goal is to have the ball get smaller and harder to hit as you gain more points in the level.
Comment