UI fixes, add npc base class
This commit is contained in:
@@ -11,11 +11,11 @@ public class RadialMenuItem : MonoBehaviour
|
||||
private Button _radialMenuItemPrefab;
|
||||
private Dictionary<RadialMenuActions, RadialMenuActionDescription> _actions;
|
||||
private UniTaskCompletionSource<RadialMenuActions> tcs = new UniTaskCompletionSource<RadialMenuActions>();
|
||||
private float _buttonWidth;
|
||||
//private float _buttonWidth;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
_buttonWidth = _radialMenuItemPrefab.GetComponent<RectTransform>().rect.width;
|
||||
// _buttonWidth = _radialMenuItemPrefab.GetComponent<RectTransform>().rect.width;
|
||||
}
|
||||
|
||||
public UniTask<RadialMenuActions> ShowButtons(Dictionary<RadialMenuActions, RadialMenuActionDescription> actions)
|
||||
|
||||
@@ -33,9 +33,7 @@ public class UIContainer : MonoBehaviour
|
||||
else
|
||||
{
|
||||
_container.gameObject.SetActive(false);
|
||||
Destroy(_playerContainer);
|
||||
//_playerContainer.OnItemsChange -= OnItemsChange;
|
||||
//_playerContainer = null;
|
||||
_playerContainer.OnItemsChange -= OnItemsChange;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user