Started implementing mixers
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user