I mean like if Number1 >= 1 then it sets Destroyed1 = true; and if Destroyed1 = true then wait 0,5s and then setactive = false an gmaeobject called breakablecubegameobject dont ask about the kl
oh
it cut the end
so then activate coin1
A bit of a run on code sentence.
But when you set Destroyed1 to true, either start a coroutine right after that waits .5f and then setActive to false or use an invoke that triggers after .5f. All set.
yea i knew about coroutines but i dont understand them
This handy construct lets you do just about anything “later on”:
https://gist.github.com/kurtdekker/0da9a9721c15bd3af1d2ced0a367e24e
It uses coroutines but you don’t need to care about that. Details on how to use it in the comment at the bottom.