Skip to content
Snippets Groups Projects
Commit a79a960d authored by Robin Halseth Sandvik's avatar Robin Halseth Sandvik
Browse files

Merge branch 'master' into 'main'

Can hold down left-click to keep shooting.

See merge request !10
parents b579b213 22192a25
No related branches found
No related tags found
1 merge request!10Can hold down left-click to keep shooting.
......@@ -126,7 +126,7 @@ namespace BigSock {
private void Update()
{
if (Input.GetKeyDown(KeyCode.Space) || Input.GetMouseButtonDown(0)) {
if (Input.GetKeyDown(KeyCode.Space) || Input.GetMouseButton(0)) {
// Manage attack cooldown.
if(NextTimeCanAttack <= DateTime.Now) {
NextTimeCanAttack = DateTime.Now.AddSeconds(AttackCooldown);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment