tmoneygames

Add This to Flamethrower01

Oct 18th, 2019 (edited)
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | Source Code | 0 0
  1. # we will change your code just a little
  2.  
  3. if(Input.GetKeyDown("Fire1") == true)
  4. {
  5.     Instantiate(flamethrower, transform.position + new Vector3(0, 1.05f, 0), Quaternion.identity;
  6. }
  7.  
  8. # the 1.05f is the distance from the front of the butterfly that you want the flame thrower to appear
  9. # so in the scene view set the butterfly to face up (y position) and move the flamethrower to a small
  10. # 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