Particle Error
The particles are not bouncing from the walls, no matter what I do. I tried changing it into 0, doesn’t work.
The enemy is also not dying from the lasers. I tried fixing it, but it is not working but just going through the enemy.
I am trying to do this in my code
if (Input.GetButton("Fire1")) //Trigger left and right lasers
{
SetLasersActiveL(true); SetLasersActiveR(true);
}
else
{
SetLasersActiveL(false); SetLasersActiveR(false);
}
or this
if (Input.GetKeyDown(KeyCode.Space)) //This code should work, right???
{
SetLasersActiveL(true); SetLasersActiveR(true);
}
else
{
SetLasersActiveL(false); SetLasersActiveR(false);
}
This should supposedly make it so that if you press space, both thrusters (left and right) should shoot the lasers. If you press right alt, only the left thruster should shoot. Same with right ctrl but with the right thruster shooting. This is not happening and space is not launching both lasers.