I have been looking for the answer to this problem but have not found any that solves the problem. The prefab is registered.
Here is the code piece, in the following class:
"public class MyNetworkManager : NetworkManager"
public override void OnStartServer()
{
NetworkServer.RegisterHandler(MsgTypes.PlayerPrefab, OnResponsePrefab);
base.OnStartServer();
SpawnCard ();
}
void SpawnCard () {
GameObject go = GameObject.Instantiate (theGuy) as GameObject;
NetworkServer.Spawn (go);
}
Can someone hint what the problem is?