Timeline for Spawning prefab on touch after previous spawn(s) had been destroyed
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 21, 2020 at 22:16 | comment | added | Kevin |
That means you deleted/destroyed the GameObject that you are using as the Can prefab.
|
|
Aug 21, 2020 at 21:46 | comment | added | Cpt Teemo | I tried this and it sending me error message: Missing Reference Exception: The Object of type 'GameObject' has been destroyed but you are still trying to acces it.Your script should either check if it is null or you should not destroy the object. if (screenPos.x < -10f) { //< -40f numberOfPads--; canSpawn = true; Destroy(Cloud); //-------------------------- } | |
Aug 21, 2020 at 16:43 | history | answered | Kevin | CC BY-SA 4.0 |