I’m getting an error, supposedly because my Boolean method doesn’t return anything, even though added a return statement into it.
Here’s the code causing this error:
public static bool mouseClicked(MouseButton button)
{
if (button == MouseButton.Left)
{
return Input.GetMouseButtonDown(0);
}
if (button == MouseButton.Middle)
{
return Input.GetMouseButtonDown(2);
}
if (button == MouseButton.Right)
{
return Input.GetMouseButtonDown(1);
}
}
Any answers would be greatly appreciated!