Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void ReceiveCurrentTray(GameObject _tray)
- {
- _tray.transform.SetParent(customers[0].handBone);
- _tray.GetComponent<Rigidbody>().constraints = RigidbodyConstraints.FreezeAll;
- _tray.GetComponent<GameItem>().enabled = false;
- _tray.transform.localPosition = Vector3.zero;
- _tray.transform.localRotation = Quaternion.identity;
- _tray.layer = LayerMask.NameToLayer("World_Wall");
- shuffleCustomersRoutine = ShuffleCustomersRoutine(_tray);
- StartCoroutine(shuffleCustomersRoutine);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement