- Home /
Question by
unity_Ip8TbLUsYxjfjg · May 11, 2020 at 08:19 AM ·
inheritanceclassesnamespaceimporting problemsexternal-libraries
Can't inherit from namespace
I am attempting to implement networking in my game with the use of Mirror. However, Unity is preventing me from using the package I just imported. Unity is telling me "the type of namespace 'Mirror' could not be found (are you missing a using directive or an assembly reference)". This same is said for inheriting NetworkBehavior. Here is the code that I have implemented so far.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Mirror;
public class Player : NetworkBehavior
{
[SerializeField] private Vector3 movement = new Vector3();
private void Update()
{
myFunc();
}
}
Comment