This script allows the player to move forward and backward using the Vertical
axis and rotate using the Horizontal
axis. The IsOwner
check ensures that only the player who owns the object can control it.
- Save all your changes and go back to the main scene.
- Press
Play
and use the NetworkManagerHUD
to start as a Host, Client, or Server. - You should be able to control the player object and see it move on both the host and client.