Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var hit : RaycastHit2D;
- var fwd = transform.TransformDirection(Vector2.right);
- Debug.DrawRay(transform.position,fwd);
- if(Physics2D.Raycast(transform.position,fwd,hit,range)){
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement