19 lines
491 B
C#
19 lines
491 B
C#
using UnityEngine;
|
|
|
|
namespace Counters {
|
|
public class TrashCounter : BaseCounter {
|
|
public override void Interact(Player player) {
|
|
if (player.HasKitchenObject()) {
|
|
// Debug.Log("KitchenObject from player will be destroyed.");
|
|
player.GetKitchenObject().DestroySelf();
|
|
}
|
|
else {
|
|
// Debug.Log("Player does not carry anything destroyable!");
|
|
}
|
|
}
|
|
|
|
public override void InteractAlternate(Player player) {
|
|
Debug.Log("Cannot do anything alternativly here!");
|
|
}
|
|
}
|
|
} |