// Use this for initialization void Start () { ingredientsGrid = GameObject.Find("grdIngredients"); checkIngredientsGrid = GameObject.Find("grdIngredientsCheck"); kitchenwareGrid = GameObject.Find("grdKitchenware"); checkKitchenwareGrid = GameObject.Find("grdKitchenwareCheck"); kitchenwareWrapper = GameObject.Find("Kitchenware"); boardIngredients = GameObject.Find("Board Ingredients"); btnKitchenware = GameObject.Find("btnKitchenware"); btnKitchenware.GetComponent<CanvasGroup>().alpha = 0; btnKitchenware.GetComponent<CanvasGroup>().interactable = false; btnKitchenware.GetComponent<CanvasGroup>().blocksRaycasts = false; btnIngredients = GameObject.Find("btnIngredients"); btnIngredients.GetComponent<CanvasGroup>().alpha = 0; btnIngredients.GetComponent<CanvasGroup>().interactable = false; btnIngredients.GetComponent<CanvasGroup>().blocksRaycasts = false; btnCooking = GameObject.Find("btnCooking"); btnCooking.GetComponent<CanvasGroup>().alpha = 0; btnCooking.GetComponent<CanvasGroup>().interactable = false; btnCooking.GetComponent<CanvasGroup>().blocksRaycasts = false; canvas = GameObject.FindObjectOfType<Canvas>(); sceneManager = canvas.GetComponent<csKitchenSceneManager>(); message = GameObject.FindObjectOfType<csMessageManager>(); IsMissingIngredients = false; IsMissingKitchenware = false; MaxCooking = 100; MaxStepTime = 100; CurrentStep = 0; }
// Use this for initialization void Start () { canvas = GameObject.FindObjectOfType<Canvas>(); sceneManager = canvas.GetComponent<csKitchenSceneManager>(); droppableRecipe = GameObject.FindObjectOfType<csDroppableRecipe>(); }
// Use this for initialization void Start () { canvas = GameObject.FindObjectOfType<Canvas>(); sceneManager = canvas.GetComponent<csKitchenSceneManager>(); foodSelectorUI = GameObject.Find("FoodSelectorUI"); }