|
i can find them in java script everywhere but i cant seem to change it around into C# script can someone just send me a simple code i know how to add prefabs and spawn points for bullets ect thankyou!
(comments are locked)
|
|
can anyone help me make a raycast shoot script please..
(comments are locked)
|

You might want to explain what it is that you actually need, and what part of it you cant figure out
just the public part really i dunno what to put in public bullet : ? im pretty confused there but i can write the rest myself thanks buddy :)
public variables are serialized in the editor. You can add any kind of object of that type (except for script types) to that slot in the editor. Alternatively, to set a public variable programmatically, you need to get a reference to the script and set the variable on the reference.
with the script you could be using, if the type of variable that you are using for the bullet/projectile,is a rigidbody and your bullet prefab does not have a rigidbody component then it will not work.
ive improved alot from back then i can do this stuff with my eyes closed now but thanks guys for ure help