mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-25 20:04:39 -05:00
Player Teleport Implemented
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user