raycasthit2d unity code example
Example 1: raycasthit2d unity
RaycastHit2D hit = Physics2D.Raycast(transform.position, -Vector2.up);
Example 2: raycasthit2d unity
RaycastHit2D hit = Physics2D.Raycast(transform.position, -Vector2.up);
RaycastHit2D hit = Physics2D.Raycast(transform.position, -Vector2.up);
RaycastHit2D hit = Physics2D.Raycast(transform.position, -Vector2.up);