mouse to world position unity if (Input.GetMouseButtonDown) code example
Example: GetMousebuttonDown unity
if (Input.GetMouseButtonDown(1))
//This is too stop spaming the gun
if (Input.GetMouseButtonDown(1))
//This is too stop spaming the gun