public void WarmupHosting() { MeshNetworkIdentity databaseID = new MeshNetworkIdentity((ushort)ReservedObjectIDs.DatabaseObject, (ushort)ReservedPrefabIDs.Database, (ulong)GetLocalPlayerID(), true); NetworkDatabase database2 = game.SpawnDatabase(databaseID).GetComponent <NetworkDatabase>(); //Spawns the database prefab. Debug.Log("Registering database."); database2.AddObject(databaseID, true); //Tells the database that it itself exists (funny) //First, we get our own player object, and we make ourselves the provider. Player me = ConstructPlayer(SteamUser.GetSteamID()); Debug.Log("Registering provider."); database.AddPlayer(me, true); }