// Start is called before the first frame update void Start() { food = null; _GaugeUI = GameObject.FindGameObjectWithTag("CookGaugeUI"); _GaugeUIScript = _GaugeUI.GetComponent <SetCookGaugeUI>(); CBMiss = GetComponent <AudioSource>(); CBMiss.clip = missSound; }
// Start is called before the first frame update void Start() { b_ReadyCook = false; for (int i = 0; i < 3; i++) { FPanArray[i] = null; } thisPos = this.gameObject.transform.position; getUI = GameObject.Find("TestObject"); CallUI = getUI.GetComponent <SetCookGaugeUI>(); audioCookFP = GetComponent <AudioSource>(); audioCookFP.clip = cooking; }
void Start() { b_ReadyCook = false; for (int i = 0; i < 3; i++) { PotArray[i] = null; } ChangeMode(Mode.Stay); Soup = (GameObject)Resources.Load("Soup"); _GaugeUI = GameObject.FindGameObjectWithTag("CookGaugeUI"); _GaugeUIScript = _GaugeUI.GetComponent <SetCookGaugeUI>(); audioCookPot = GetComponent <AudioSource>(); audioCookPot.clip = cooking; }