Skip to content

Commit

Permalink
Fix variable error
Browse files Browse the repository at this point in the history
  • Loading branch information
Legorobotdude committed Apr 16, 2018
1 parent 5bb97c3 commit 5f803ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/GunProjectile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ public class GunProjectile : Gun {
protected override void Shoot()
{
GameObject laser = Instantiate(laserPrefab,muzzle.transform.position,muzzle.transform.rotation);
laser.GetComponent<Rigidbody>().AddForce(-laser.transform.up * 100f);
laser.GetComponent<Rigidbody>().AddForce(-laser.transform.up * laserForce);
}
}

0 comments on commit 5f803ea

Please sign in to comment.