Beispiel #1
0
 private async void OnClick(ClickEvent evt)
 {
     if (evt.target is Button b && b.ClassListContains("destroy") && b.parent.parent.parent is VisualElement parent)
     {
         Debug.Log($"Destroying game {(int)parent.userData}");
         client.DestroyGame((int)parent.userData);
         await RefreshList(0.5f);
     }
 }