Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RaycastHit hit;
- // Does the ray intersect any objects excluding the player layer
- if (Physics.Raycast(transform.position, transform.TransformDirection(Vector3.up), out hit, Mathf.Infinity))
- {
- if(collider =="ThirdPersonController");
- {
- SceneManager.LoadScene(1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement