So this was for an attack script that I’m working on. The problem is I have an if statement and its called every frame. To test it out I even tried using the debug command. and here is the code.
void Update()
{
if (Input.GetMouseButtonDown(0));
{
Debug.Log("Pressed button");
}
}
But for whatever reason it sends that debug message every frame. any Ideas?
It happens to the best of us. The reason why I believe it didn’t show any errors, with the ; , is because it is a perfectly legal statement, a pointless one but still legal.