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