Пример #1
0
 private void Update()
 {
     if (bolt == null)
     {
         return;
     }
     if (bolt.Tween != null)
     {
         return;
     }
     if (bolt.State == BoltState.Closed)
     {
         return;
     }
     if (interactable != null && interactable.IsGrabbed())
     {
         return;
     }
     bolt.Close();
 }