uNet to Mirror Migration (2 errors)

120 views Asked by At

I have two problems to solve. The first is error CS0115: 'NetworkManagerSample.OnServerDisconnect(NetworkConnection)': no suitable method found to override And the second is The type or namespace name 'MessageBase' could not be found (are you missing a using directive or an assembly reference?)

Help please, it’s very important. Errors In code

1

There are 1 answers

1
James Appleton On

Firstly:

    public override void OnServerDisconnect(NetworkConnectionToClient conn)
    {
    base.OnServerDisconnect(conn);
    }

Secondly:

Do you have using MessageBase; written at the top of a script? Maybe just remove it? Or add in a namespace of MessageBase.