I am trying to check if my object's y rotation is 0 or not. If yes, the bool should be enabled. But this never happens even when the object's rotation is (0, 0, 0). What am I doing wrong?
public bool isZero = false;
void Update () {
if(transform.eulerAngles.y == 0){
isZero = true;
} else {
isZero = false;
}
}