Hi,
I have a strange perfomance. In An IF Statement I ask for two BOOLEANS with (are they TRUE?)-> So if its TRUE then do something. Looks like:
if (Player1_plays Shoot == true) { .....
Everything is OK and the following variables set correctly
ball.rigidbody.drag = 0.08f;
ball.rigidbody.angularDrag = 0.8f;
Then I see why should I wrote “shoot == true”, I can also write “shoot”.
So my oppinion is that should be the same.
But if I write
if (Player1_plays Shoot) { .....
the variables aren’t set correctly.
So is there a different between the two statements?
if (Player1_plays Shoot == true) and if (Player1_plays Shoot)
I am a little confused about this…
Chris