32 lines
690 B
C#
32 lines
690 B
C#
![]() |
using UnityEngine;
|
||
|
|
||
|
namespace BlueWater.Tycoons
|
||
|
{
|
||
|
public class Liquid : InteractionFurniture
|
||
|
{
|
||
|
[SerializeField]
|
||
|
private LiquidController _liquidController;
|
||
|
|
||
|
protected override void Awake()
|
||
|
{
|
||
|
base.Awake();
|
||
|
|
||
|
_liquidController = FindAnyObjectByType<LiquidController>();
|
||
|
}
|
||
|
|
||
|
public override void Interaction()
|
||
|
{
|
||
|
_liquidController.ActiveIsPouring();
|
||
|
}
|
||
|
|
||
|
public override void CancelInteraction()
|
||
|
{
|
||
|
_liquidController.InActiveIsPouring();
|
||
|
}
|
||
|
|
||
|
public override bool CanInteraction()
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
}
|