Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GameObject bullet;
- bullet = Instantiate(bulletModel, transform.position + transform.TransformDirection(new Vector3(0, 0, 2)), transform.rotation) as GameObject;
- BulletBehaviour bulletScript;
- bulletScript = bullet.GetComponent<BulletBehaviour>();
- Debug.Break();
- bulletScript.SetBulletDamage(turretDamage);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement