protected static void HandleInstantiate(Vector3 pos, Quaternion rot, string playerPrefab, byte[] mPlayer) { //================================================================================================================================\\ Player playerInstantiated = mPlayer.DeserializeObject <Player>(); //================================================================================================================================\\ Neutron.Enqueue(() => { GameObject playerPref = Resources.Load(playerPrefab, typeof(GameObject)) as GameObject; if (playerPref != null) { Neutron.onPlayerInstantiated(playerInstantiated, pos, rot, playerPref); } else { LoggerError($"CLIENT: -> Unable to load prefab {playerPrefab}"); } }, ref monoBehaviourActions); }