void Start() { garbageEnlace = GameObject.FindObjectOfType <GarbageController> (); tempRenderer = GetComponent <MeshRenderer> (); tempCollider = GetComponent <BoxCollider> (); targetPivot = transform.GetChild(0).transform; }
IEnumerator Success() { bottomWall.enabled = false; GarbageController.CallOnAll(garbageImpulse); yield return(new WaitWhile(GarbageExists)); if (!pressed) { success = false; bottomWall.enabled = true; yield break; } done = true; Debug.Log("SUCCESS"); gc.reportCanvas.enabled = true; }
/// <summary> /// Adds Borrowed Items to Garbage. /// </summary> /// <param name="borrow">Borrow Object that has the information of garbages</param> /// <param name="quantity">How many objects will send to the garbage</param> public void AddGarbage(Borrow borrow, int quantity) { GarbageController.AddGarbageFromBorrow(borrow, quantity); }
/// <summary> /// Adds Stocked Items to Garbage . /// </summary> /// <param name="stock">Stock Object that has the information of garbages</param> /// <param name="quantity">How many objects will send to the garbage</param> public void AddGarbage(Stock stock, int quantity) { GarbageController.AddGarbageFromStock(stock, quantity); }