// Use this for initialization void Start() { foodBeingPrepared = FindObjectOfType<FoodBeingPrepared>(); foodBeingPreparedOriginalPos = foodBeingPrepared.transform.position; foodBeingPrepared.gameObject.SetActive(false); mainCamera = FindObjectOfType<Camera>(); knifeSet = GameObject.Find("KnifeSet").GetComponent<KnifeSet>(); database = GameObject.Find("ItemDatabase").GetComponent<ItemDatabase>(); gameManager = GameObject.Find("GameOverlay").GetComponent<GameManager>(); }
void Start() { knifeSet = GameObject.Find("KnifeSet").GetComponent<KnifeSet>(); choppingBoard = GameObject.Find("ChoppingBoard").GetComponent<ChoppingBoard>(); mainCamera = FindObjectOfType<Camera>(); playerController = FindObjectOfType<PlayerController>(); homeRecipeCard.gameObject.SetActive(false); }