#Bug Please Help
1 messages · Page 1 of 1 (latest)
where is this method being called?
input has to be checked in void Update
yep, that's what i'm geitting at . . .
what timer?
you're destroying the object when ffTimer_max is reached. why would it still work it the object is destroyed?
oh
what do you think Destroy means (does)?
not game object
im stupid
but im trna make it so whenever i press a key it spawns the force field
then when the timer runs out it destroys itself
just comment out the Destroy for now. place a log in the input check and see if it shows . . .
do you see a force field object appear in the hierarchy?
so does a new force field appear? i don't know what the pic means. you could've had 2 already in the scene . . .
okay, so it works . . .
yeh srry
i can delete the empty game object
so do i add the destroy back
but i can only add 1
and it dosnt get destroyed
if you're done, you can add it back. i didn't want to object getting destroyed while trying to check if the key press worked . . .
it'll only spawn when the key is pressed, you have to keep pressing it to spawn more . . .
yeh
but i dont think detroying it would be the best option
because i want it so whenever i press the key i can only spawn 1. and it also dissapears after the timer is up[