public override void Interact(Hand hand) { base.Interact(hand); if (finalClose) { return; } DisableClosing(); float angle = Vector3.Angle(Vector3.down, transform.up); if (angle < 45) { return; } Logger.Print("Release syringes"); foreach (Syringe s in Syringes) { ReleaseSyringe(s); } Syringes.Clear(); IsClosed = false; }
private void SetSyringe(Syringe syringe) { syringe.RigidbodyContainer.Disable(); SetColliders(syringe.transform, false); syringe.transform.SetParent(transform); syringe.transform.localPosition = ObjectPosition(Syringes.Count); syringe.transform.localEulerAngles = new Vector3(180, 180, 0); Syringes.Add(syringe); }