2024-10-20 17:21:39 +00:00
|
|
|
using BlueWater.Interfaces;
|
|
|
|
|
|
|
|
namespace BlueWater.Tycoons
|
|
|
|
{
|
|
|
|
public class BartenderTable : ServingTable
|
|
|
|
{
|
2024-10-22 12:41:31 +00:00
|
|
|
public override void Interaction()
|
|
|
|
{
|
|
|
|
// 테이블의 칵테일을 가져가는 경우
|
|
|
|
if (CurrentPickupItem != null)
|
|
|
|
{
|
|
|
|
EventManager.InvokeTakeFromServingTable();
|
|
|
|
CurrentTycoonPlayer.TycoonPickupHandler.PickupItem(CurrentPickupItem);
|
|
|
|
CurrentTycoonPlayer.InteractionCanvas.BalloonUi.SetItemImage(CurrentPickupItem);
|
|
|
|
CocktailGlassImage.enabled = false;
|
|
|
|
InteractionCanvas.BalloonUi.DiscardItem();
|
|
|
|
CurrentPickupItem = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-10-20 17:21:39 +00:00
|
|
|
public override bool CanInteraction()
|
|
|
|
{
|
2024-10-22 12:41:31 +00:00
|
|
|
return CurrentPickupItem != null && !CurrentTycoonPlayer.TycoonPickupHandler.IsPickedUpCocktail();
|
|
|
|
}
|
|
|
|
|
|
|
|
public override bool CanInteractionCrew()
|
|
|
|
{
|
|
|
|
return CurrentPickupItem != null && _orderedCustomer != null;
|
2024-10-20 17:21:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void CompleteMakingCocktail(IPickup cocktailData)
|
|
|
|
{
|
|
|
|
CurrentPickupItem = cocktailData;
|
|
|
|
CocktailGlassImage.enabled = true;
|
|
|
|
InteractionCanvas.BalloonUi.SetItemImage(CurrentPickupItem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|