Player Teleport Implemented

This commit is contained in:
Melbyj1125
2021-12-10 18:29:51 -06:00
parent 4c8cbcf82e
commit 610d8b832e
2 changed files with 10 additions and 4 deletions

View File

@@ -580,4 +580,9 @@ public class PlayerMovement : NetworkBehaviour
}
moveController.enabled = true;
}
public void TeleportPlayer(Vector3 position, Quaternion rotation = new Quaternion()){
transform.position = position;
transform.rotation = rotation;
}
}