I study 2D tutorial from Official 2D platformer which is downloaded from asstes store.In the playercontrol script, i am confused with some codes , like the following picture:
[28959-qq截图20140710131416.png|28959]
the grounded is a bool type , the Physics2D.Linecast should return RaycastHit2D type , why does the retuen value assigne to grounded that is a boolean type ?
There is no compiler error .
Is there something wrong with the demo code ?
any one can help me ?