Eonirr

Untitled

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