Hey!
Im creating a really simple enemy script where the enemy(cube) takes damage and when health reaches zero, the cube disappears! I found out you could use Destroy (gameObject), so i tried using that and it worked. Naturally I tried using Create (gameObject), but it dident work. Are there any way i can spawn a cube using Javascript? Ive tried some methods, but seems like i really can’t get it.