void Awake() { // Gets all the reference scripts needed mainDrinkScriptRef = GameObject.Find("Drinks").GetComponent<MainDrinksScript>(); slider = GameObject.Find("Slider"); mySliderRef = slider.GetComponent<UISlider>(); myChargeRef = slider.GetComponent<ChargeScript>(); }
void Awake() { myScoreRef = GameObject.Find("MoneyLabel").GetComponent<ScoreScript>(); mySeatScriptRef = (GameObject.Find("BarSeats")).GetComponent<SeatsScript>(); customer = this.gameObject; // Makes the baloon invisible at start baloon.SetActive(false); // Empties the current sprite slot mainDrinksScriptRef = (GameObject.Find("Drinks")).GetComponent<MainDrinksScript>(); }