Example #1
0
 void Start()
 {
     headChefTransform = GameObject.Find("Head Chef").GetComponent <Transform>();
     foodSpawner       = GameObject.Find("Scene Manager").GetComponent <FoodSpawner>();
     scoreLogic        = GameObject.Find("Scene Manager").GetComponent <ScoreLogic>();
     foodInteraction   = GameObject.Find("Detection Trigger").GetComponent <FoodInteraction>();
 }
 void Start()
 {
     gameHasEnded             = false;
     warningsImage            = GameObject.Find("Warnings Image").GetComponent <Image>();
     warningsImage.fillAmount = 0;
     foodInteraction          = GameObject.Find("Detection Trigger").GetComponent <FoodInteraction>();
     player   = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>();
     gameOver = GameObject.Find("Scene Manager").GetComponent <GameOver>();
 }