Skip to content

Commit

Permalink
added missing line of code
Browse files Browse the repository at this point in the history
  • Loading branch information
Omonom47 committed Jul 13, 2024
1 parent 9885174 commit b77e956
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ~Documentation/topics/Opgave-2-Kollision.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ if (Input.GetKeyDown(KeyCode.Space) && leftoverCooldown <= 0)
GameObject bullet = Instantiate(bulletPrefab,transform.position,quaternion.identity);
Rigidbody bulletRb = bullet.GetComponent<Rigidbody>();
bulletRb.velocity = transform.forward * bulletSpeed;
leftoverCooldown = cooldownTime;
}
```

Expand Down

0 comments on commit b77e956

Please sign in to comment.