refactor interact system
interact only after PopupItemMenu button clicked
This commit is contained in:
@@ -40,12 +40,12 @@ public class UIManager : MonoBehaviour
|
||||
jobSelector.ShowJobSelectionDialog(title, onCancel, onConfirm);
|
||||
}
|
||||
|
||||
public void ShowItemsMenu()
|
||||
public void ShowItemsMenu(Action itemsMenuCallback)
|
||||
{
|
||||
var popupMenu = Instantiate(_itemPopupMenuPrefab) as PopupItemMenu;
|
||||
popupMenu.transform.transform.SetParent(transform, false);
|
||||
popupMenu.transform.position = Input.mousePosition;
|
||||
popupMenu.ShowButtons();
|
||||
popupMenu.ShowButtons(itemsMenuCallback);
|
||||
}
|
||||
|
||||
public void Freeze()
|
||||
|
||||
Reference in New Issue
Block a user