Example #1
0
        /// <summary>
        /// Register to set of grabbables
        /// </summary>
        public static void DeRegisterGrabbable(GrabbityGrabbable grabbable)
        {
            _grabbables.Add(grabbable);
            if (grabbable == CurrentGrabbable)
            {
                CurrentGrabbable = null;
            }

            if (_launchedRigidbody == grabbable.RigidBodyComponent)
            {
                _launchedRigidbody = null;
            }
        }
Example #2
0
 /// <summary>
 /// Register to set of grabbables
 /// </summary>
 public static void RegisterGrabbable(GrabbityGrabbable grabbable)
 {
     _grabbables.Add(grabbable);
 }