private void ListView_ItemClick(object sender, ItemClickEventArgs e) { CarPrefabDetails carDetails = e.ClickedItem as CarPrefabDetails; UnityMainThreadDispatcher.Instance().Enqueue(() => TrafficManager.SpawnCar(carDetails.ResourcePath)); }