|
Okay, I can not figure out where to drag and drop the "Explosion" prefab in the inspector window of the "Missile". From page 12. There does not seem to be any place that will allow me to place the Explosion on http://to.So... Where is the Missile explosion Variable ? Nowwecanassigntheexplosiontothemissile: EnsuringthatMissileprefabisselected,fillintheExplosionvariablebydragging theExplosionobjectintheProjectpanelontotheMissilesExplosionvariablein theInspectorpanel. Please tell me what I am missing! Thanks
(comments are locked)
|
|
i am having the exact same problem... i did the code correctly... as far as i can see but the explotion variable slot will not show up
function OnCollisionEnter( collision : Collision ) { var contact : ContactPoint = collision.contacts[0];
}
(comments are locked)
|
|
the problem for me was that i had to go to component -> scripts -> projectile when i had missile prefab selected. This added a projectile script with an explosion variable that was empty. Then I was able to drag in the explosion prefab. Hopefully that helps.
(comments are locked)
|
|
I've never followed the tutorial, but I'm assuming it would be a user created variable in the script component of the Missile prefab.
(comments are locked)
|

Please edit your question to make it readable