38 lines
1.3 KiB
C#
38 lines
1.3 KiB
C#
using BlueWater.Interfaces;
|
|
|
|
namespace BlueWater.Tycoons
|
|
{
|
|
public class BartenderTable : ServingTable
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
|
|
public override bool CanInteraction()
|
|
{
|
|
return CurrentPickupItem != null && !CurrentTycoonPlayer.TycoonPickupHandler.IsPickedUpCocktail();
|
|
}
|
|
|
|
public override bool CanInteractionCrew()
|
|
{
|
|
return CurrentPickupItem != null && _orderedCustomer != null;
|
|
}
|
|
|
|
public void CompleteMakingCocktail(IPickup cocktailData)
|
|
{
|
|
CurrentPickupItem = cocktailData;
|
|
CocktailGlassImage.enabled = true;
|
|
InteractionCanvas.BalloonUi.SetItemImage(CurrentPickupItem);
|
|
}
|
|
}
|
|
} |