private void Awake()
 {
     spriteRenderer   = GetComponent <SpriteRenderer>();
     vegetableFactory = VegetableFactory.GetInstance();
     saladFactory     = SaladFactory.GetInstance();
     orderMenu        = vegetableFactory.GetCatalog();
     vegetableKeys    = orderMenu.Keys.ToArray();
 }
        public static VegetableFactory GetInstance()
        {
            if (_instance == null)
            {
                _instance = new VegetableFactory();
            }

            return(_instance);
        }
        private void Awake()
        {
            vegetableFactory = VegetableFactory.GetInstance();
            var vegetableCatalog = vegetableFactory.GetCatalog();

            if (vegetableCatalog.ContainsKey(vegetableID))
            {
                SetVegitable(vegetableCatalog[vegetableID]);
            }
        }