Skip to content

Commit

Permalink
refactor: example, only spawn bullet on key down
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Aug 7, 2022
1 parent ea15bf6 commit c9b8917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Example/ExamplePlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private void ClientUpdate()

RpcSendInuts(_clientInputs);

if (Input.GetKey(KeyCode.Space))
if (Input.GetKeyDown(KeyCode.Space))
{
RpcShoot(0, transform.position, transform.rotation, 10, Random.value);
}
Expand Down

0 comments on commit c9b8917

Please sign in to comment.