Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # we will change your code just a little
- if(Input.GetKeyDown("Fire1") == true)
- {
- Instantiate(flamethrower, transform.position + new Vector3(0, 1.05f, 0), Quaternion.identity;
- }
- # the 1.05f is the distance from the front of the butterfly that you want the flame thrower to appear
- # so in the scene view set the butterfly to face up (y position) and move the flamethrower to a small
- # distance in front of it and use the number that shows up in the y's transform.
Advertisement
Add Comment
Please, Sign In to add comment