hey everyone! so.. I'm having a problem... I'm making a game of batleships, and i is going very well so far, but now I wanted to make an enemy shoot at me, so i've already make the boat look at me but now i cant make it shoot! this is my script can anyone tell me what is wrong with it?
var bullitprefab: Transform;
this should be this be enought, right?
Well nothing is really wrong with it but the variable bullitprefab has to be rigidbody. Let me give you an example on how I would use this, and explain some stuff: