13 lines
437 B
C#
13 lines
437 B
C#
using Counters;
|
|
using UnityEngine;
|
|
|
|
public class DeliveryCounter : BaseCounter {
|
|
public override void Interact(Player player) {
|
|
if (player.HasKitchenObject()) {
|
|
if (player.GetKitchenObject().TryGetPlate(out PlateKitchenObject plateKitchenObject)) {
|
|
DeliveryManager.Instance.DeliverRecipe(plateKitchenObject);
|
|
player.GetKitchenObject().DestroySelf();
|
|
}
|
|
}
|
|
}
|
|
} |