Trying to implement Mirror Networking

I’m working on a Unity project where I created a player character and a simple platform for it to run on. Everything works fine in single-player mode, but I want to try LAN co-op. So I downloaded Mirror from the Unity Asset Store.

In the Pong demo:

  1. I copied the NetworkManager and adjusted the script.
  2. Added a Network Identity component to the player.
  3. Modified the player movement code for networking.

However, when I run the game:

  • In the Hierarchy, the player appears faded.
  • In the Game View, I can move the camera, but I can’t move the player.
  • Checking the Scene View, I can’t see the player.

I’m a beginner in co-op game development, so I might have missed something. If anyone can help me figure out what’s wrong, I’d really appreciate it!

Here is the code I’ve been working with:

I only change this line of code in playerMovement

from: public class PlayerMovement : MonoBehaviour
to: public class PlayerMovement : NetworkBehaviour