Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1.             GameObject bullet;
  2.             bullet = Instantiate(bulletModel, transform.position + transform.TransformDirection(new Vector3(0, 0, 2)), transform.rotation) as GameObject;
  3.             BulletBehaviour bulletScript;
  4.             bulletScript = bullet.GetComponent<BulletBehaviour>();
  5.             Debug.Break();
  6.             bulletScript.SetBulletDamage(turretDamage);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement