radial menu work
This commit is contained in:
@@ -6,14 +6,16 @@ public class StoreContainer : BaseInteractableObject
|
||||
[SerializeField]
|
||||
private SellableItemSO _sellableItemSO;
|
||||
|
||||
protected override void InteractAction()
|
||||
protected override void PrepareMenuActions()
|
||||
{
|
||||
if (_player.IsHoldContainerItem())
|
||||
{
|
||||
var clone = Instantiate(_sellableItemSO);
|
||||
_menuActions[RadialMenuActions.Take].IsEnabled = _player.IsHoldContainerItem();
|
||||
}
|
||||
|
||||
var container = _player.GetContainerItem();
|
||||
container.AddItem(clone);
|
||||
}
|
||||
protected override void InteractAction(RadialMenuActions interactAction)
|
||||
{
|
||||
var clone = Instantiate(_sellableItemSO);
|
||||
|
||||
var container = _player.GetContainerItem();
|
||||
container.AddItem(clone);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user