コード例 #1
0
ファイル: drinkButton.cs プロジェクト: remistorms/PassTheBeer
	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>();
	
	}
コード例 #2
0
	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>();

	}