title: EulerAngles Unity in if statement does not work proper with some values C#
body: <p>I have a car game, and it is only possible to drive along the x and the z axis.
  If the car drives to positiv z (rotation  == 0) then it has to do something, if it drives to positive x (rotation == 90) then it has to do something else, and so on.</p>
  
  <pre><code>    if (transform.rotation.eulerAngles.y == 0)
      {
          richtung = 0;
          Debug.Log("north");
      }
  
      if (transform.rotation.eulerAngles.y == 90)
      {
          richtung = 1;
          Debug.Log("east");
      }
  
      if (transform.rotation.eulerAngles.y == -180 || transform.rotation.y == 180)
      {
          richtung = 2;
          Debug.Log("south");
      }
  
      if (transform.rotation.eulerAngles.y == -90)
      {
          richtung = 3;
          Debug.Log("west");
      }
  </code></pre>
  
  <p>It works with north and east, but south and west does not. Even if I start the program with a car driving with rotation == -180 || 180.
  What am I doing wrong?
  Thanks!</p>