Added basic recipes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using UnityEngine;
|
||||
using Fruitomation.Game.Items;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Fruitomation.Game
|
||||
{
|
||||
@@ -7,5 +8,20 @@ namespace Fruitomation.Game
|
||||
[Header("Mixer Specific")]
|
||||
[SerializeField] private RectTransform OutputLocation;
|
||||
[SerializeField] private TriggerDetector Trigger;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
Trigger.SetAction(other =>
|
||||
{
|
||||
bool isItem = other.transform.parent.TryGetComponent(out ItemBehaviour item);
|
||||
if (!isItem)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
item.transform.position = OutputLocation.position;
|
||||
|
||||
}, TriggerType.Enter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user