NetworkBehaviour is obsolete CS0618

I’ve heard that UNet is going to be replaced or is already replaced i’m not sure, im kinda new to unity. But anyways to the question that i have.

So i have a simple script that is mean’t to make the player able to move the player object. But it gives me this error CS0618 and the script won’t work at all im not sure if that is why it doesn’t work or if it’s something else.

Is there anything else i could use instead of NetworkBehaviour at the moment?

Thanks!

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;

public class Player : NetworkBehaviour
{
   
    void Update()
    {
      if (isLocalPlayer == true)
        {
            if (Input.GetKey(KeyCode.D))
            {
                this.transform.Translate(Vector3.right * Time.deltaTime * 3f);
            }
        }   
    }
  

}

UPDATE*

the warning message is gone after updating to the latest update of unity.

Unity has a new network system with an alpha release on github. The documentation borders on non-existent. You can find the link in one of the relevant threads over in the connected games forum.

The developer of uMMORPG maintains a UNet replacement called Mirror. Until Unity’s new networking package has documentation, is fully tested, etc., Mirror is a good option because it has the same API as UNet so you can rely on all of the existing UNet tutorials.