Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Teleport:MonoBehaviour
- {
- public Transform destination;
- void Update()
- {
- if (Input.GetKeyUp(KeyCode.Space))
- {
- transform.position = destination.position;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement