void Start() { Debug.logger.logEnabled = true; DontDestroyOnLoad(gameObject); Debug.logger.logEnabled = true; foreach (var method in typeof(DatabaseUpdate).GetMethods()) { //Debug.Log("Method: " + method.Name); method.MethodHandle.GetFunctionPointer(); } foreach (var method in typeof(MeshNetworkIdentity).GetMethods()) { //Debug.Log("Method: " + method.Name); method.MethodHandle.GetFunctionPointer(); } foreach (var method in typeof(Player).GetMethods()) { //Debug.Log("Method: " + method.Name); method.MethodHandle.GetFunctionPointer(); } foreach (var method in typeof(String).GetMethods()) { //Debug.Log("Method: " + method.Name); method.MethodHandle.GetFunctionPointer(); } foreach (var method in typeof(MeshPacket).GetMethods()) { //Debug.Log("Method: " + method.Name); method.MethodHandle.GetFunctionPointer(); } typeof(NetworkDatabase).GetMethod("GenerateDatabaseChecksum").MethodHandle.GetFunctionPointer(); Player p = new Player("hello", 123, "abc"); //System.Runtime.CompilerServices.RuntimeHelpers.PrepareMethod(System.RuntimeMethodHandle //Testing.DebugDatabaseSerialization(); //Testing.BitTesting(); //Testing.TransactionTesting(); Testing.DebugPackets(); p.SerializeFull(); networkUIController = gameObject.GetComponent <UIController>(); endpoint = gameObject.AddComponent <MeshEndpoint>(); endpoint.meshnet = this; game = gameObject.GetComponent <GameCoordinator>(); if (SteamManager.Initialized) { m_LobbyCreated = CallResult <LobbyCreated_t> .Create(OnCreateLobby); m_JoinedLobby = CallResult <LobbyEnter_t> .Create(OnJoinedLobby); m_GotLobbyList = CallResult <LobbyMatchList_t> .Create(OnGotLobbyList); m_NewUserSession = Callback <P2PSessionRequest_t> .Create(OnSessionRequest); m_ChatUpdate = Callback <LobbyChatUpdate_t> .Create(OnLobbyUpdate); localPlayerID = SteamUser.GetSteamID().m_SteamID; } else { Debug.LogError("SteamManager not initialized!"); } //WarmupHosting(); }