// Start is called before the first frame update void Start() { // Singleton hehe. // gameManager = GameManager.GetInstance(); cookingManager = gameManager.cookingManager; orderManager = gameManager.orderManager; soundManager = gameManager.soundManager; // Setting my timers to 0 safely // orderSubmittedTextTimer = 0; orderCreatedText.gameObject.SetActive(false); TextMeshProUGUI colourDropdownLabel = colourDropdown.transform.Find("Label").GetComponent <TextMeshProUGUI>(); TextMeshProUGUI meatVegDropdownLabel = meatVegDropdown.transform.Find("Label").GetComponent <TextMeshProUGUI>(); // Initialising static texts to their adjustable counter parts. // submittedOrderText = adjustableSubmittedOrderText; colourDropdown.options.Clear(); colourDropdownLabel.text = "None"; meatVegDropdown.options.Clear(); meatVegDropdownLabel.text = "None"; PopulateColourDropdownOptions(colourDropdown); PopulateMeatVegDropdownOptions(meatVegDropdown); playersMouseLook = playerCamera.GetComponent <MouseLook>(); // ---------------------- Initialising Appliance References ---------------------- // theCatcher = gameManager.cookingManager.theCatcher; // ------------------------------------------------------------------------------- // }
// Start is called before the first frame update void Start() { gameManager = GameManager.GetInstance(); theCatcher = gameManager.cookingManager.theCatcher; soundManager = gameManager.soundManager; }