// 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>();
 }
Ejemplo n.º 2
0
 //This declares foodBeingPrepared locally when it is called into being again by the ChoppingBoard
 public void SetFoodBeingPrepared()
 {
     foodBeingPrepared = choppingBoard.GetComponentInChildren<FoodBeingPrepared>();
 }