// Use this for initialization void Start() { instance = this; satisfied = false; PastaMoney = 50; // 기본 파스타 값 removeit = true; animator = GetComponent <Animator>(); wait = true; eat = true; go[0] = tomato_pasta; go[1] = cream_pasta; go[2] = oil_pasta; go[0].tag = "TomatoPasta"; go[1].tag = "CreamPasta"; go[2].tag = "OilPasta"; pastaOrder(); waitingbarFilled.fillAmount = 1f; //이미 채워져 있음. eatingbarFilled.fillAmount = 1f; eatingbarBackground.SetActive(false); StartCoroutine(waiting()); }
// Use this for initialization void Start() { instance = this; transferScene = FindObjectOfType <TransferScene>(); customerSpawn = FindObjectOfType <CustomerSpawn>(); objmanager = FindObjectOfType <objmanager>(); start = true; _runtime = gameObject.GetComponent <Slider>(); _runtime.value = startTime; _runtime.minValue = 0f; _runtime.maxValue = 250f; }