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);
}
}
}
}