Facing 2 types of problems
- Strange Issues like :
when I write like this ( following the tutor)
using Mirror;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NamaxNetworkManager : NetworkManager {
public override void OnClientConnect(NetworkConnection connection)
{
base.OnClientConnect(connection);
Debug.Log("I connected to a server!");
}
Error shows :
*** error CS0115: ‘NamaxNetworkManager.OnClientConnect(NetworkConnection)’: no suitable method found to override ***
& due to this I cant run to check the scripts.
but when I right like this :
public override void OnClientConnect()
{
base.OnClientConnect();
Debug.Log("I connected to a server!");
}
it shows me only warning with successful Run :
** No Transport assigned to Network Manager - Using KCP [7777] found on same object.
UnityEngine.Debug:LogWarning (object) **
- related to un-matching Assets
when I changed MonoBehaviour to NetworkManager
I had to to add 2 scripts manually instead of 1 ( like tutor did : he added only one scripts from the Mirror assets naming Network Manager HUD for interactable buttons/UI )
one was of KCP Transport (script) / Telepathy Transport(mirror) (tried to switch one-by-one check if my error goes off or not but didn’t worked)