Advertisement
Guest User

Tray

a guest
Jun 13th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1.  public void ReceiveCurrentTray(GameObject _tray)
  2.     {
  3.         _tray.transform.SetParent(customers[0].handBone);
  4.         _tray.GetComponent<Rigidbody>().constraints = RigidbodyConstraints.FreezeAll;
  5.         _tray.GetComponent<GameItem>().enabled = false;
  6.         _tray.transform.localPosition = Vector3.zero;
  7.         _tray.transform.localRotation = Quaternion.identity;
  8.          _tray.layer = LayerMask.NameToLayer("World_Wall");
  9.         shuffleCustomersRoutine = ShuffleCustomersRoutine(_tray);
  10.         StartCoroutine(shuffleCustomersRoutine);
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement