Eonirr

Untitled

Mar 17th, 2025
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. public void CHeckGround()
  2. {
  3. if (RaycastHit2D hit = Physics2D.Raycast(position, direction, distance, layer))
  4. {
  5. if(hit)
  6. {
  7. Debug.Log("COUCOU");
  8. }
  9. }
  10. }
  11.  
  12.  
Advertisement
Add Comment
Please, Sign In to add comment