private void Awake()
        {
            _ingredientMover = FindObjectOfType <IngredientMover>();
            _menuDrawer      = GetComponentInParent <MenuDrawer>();
            _ingredientSlice = GetComponent <IngredientSlice>();

            // is called after menuDrawer is initialized since it is the one assigning the start position.
            _menuDrawer.OnInitialized += LogStartTransform;
        }
Exemple #2
0
 private void Awake()
 {
     _sandwichController = FindObjectOfType <SandwichController>();
     _ingredientSlice    = GetComponent <IngredientSlice>();
 }