public void Init()
 {
     minigame       = (MixIngredientsMinigame)FindObjectOfType <MinigameManager>().minigame;
     spriteRenderer = GetComponentInChildren <SpriteRenderer>();
     ToggleSprite();
     bowl            = FindObjectOfType <BowlControl>();
     initialPosition = transform.position;
 }
Exemple #2
0
 private void Awake()
 {
     minigameManager = (MixIngredientsMinigame)FindObjectOfType <MinigameManager>().minigame;
 }