new UniTask instead of task

This commit is contained in:
2023-12-17 23:23:40 +02:00
parent 255b358b63
commit c9d9900fca
69 changed files with 4065 additions and 25 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
using Cysharp.Threading.Tasks;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
public class UISystem : MonoBehaviour
@@ -33,7 +33,7 @@ public class UISystem : MonoBehaviour
jobSelector.ShowJobSelectionDialog(title, onCancel, onConfirm);
}
public async Task<RadialMenuActions> ShowItemPopupMenu(Dictionary<RadialMenuActions, RadialMenuActionDescription> actions)
public async UniTask<RadialMenuActions> ShowItemPopupMenu(Dictionary<RadialMenuActions, RadialMenuActionDescription> actions)
{
_popupMenu = Instantiate(_radialMenuItemPrefab);
_popupMenu.transform.transform.SetParent(transform, false);