Started implementing mixers

This commit is contained in:
Pasha Bibko
2026-04-28 10:08:27 +01:00
parent ba9b895f03
commit d53b760546
4 changed files with 125 additions and 23 deletions

View File

@@ -36,17 +36,25 @@ namespace Fruitomation.Game.Items
private IEnumerator SendToGhostRealmInternal()
{
CurrentChild.SetActive(false);
Body2D.Sleep();
Sleep();
yield return new WaitForSeconds(0.5f);
CurrentChild.SetActive(true);
Body2D.WakeUp();
WakeUp();
}
public void SendToTheGhostRealm() => StartCoroutine(SendToGhostRealmInternal());
public void Sleep()
{
CurrentChild.SetActive(false);
Body2D.Sleep();
}
public void WakeUp()
{
CurrentChild.SetActive(true);
Body2D.WakeUp();
}
public void InitBehaviour(Canvas canvas, ItemType startType)
{
RectTransform = transform.GetComponent<RectTransform>();