15 lines
612 B
C#
15 lines
612 B
C#
using UnityEngine;
|
|
|
|
public class BaseCounter : MonoBehaviour, IKitchenObjectParent
|
|
{
|
|
[SerializeField] private Transform counterTopPoint;
|
|
private KitchenObject kitchenObject;
|
|
|
|
public virtual void Interact(Player player) => Debug.LogError("BaseCounter.Interact()");
|
|
public Transform GetKitchenObjectFollowTransform() => counterTopPoint;
|
|
public void SetKitchenObject(KitchenObject kO) => kitchenObject = kO;
|
|
public KitchenObject GetKitchenObject() => kitchenObject;
|
|
public void ClearKitchenObject() => kitchenObject = null;
|
|
public bool HasKitchenObject() => kitchenObject != null;
|
|
}
|