Example #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.GetComponent <prop>())
     {
         if (_objectCollidedWithHand == null)
         {
             _stateManagerMutatorRef.SET_OBJECT_COLLIDED_WITH_HAND(other.gameObject);
         }
     }
 }
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.GetComponent <MonoBehaviour>() is prop)
     {
         //TODO: if you bring object in from telekinesis mode, and unclick,
         //you have to still leave and enter object to free grab
         if (!isCurrentlyColliding && !_selectedObjectIsActive)
         {
             collidedWithHand = other.gameObject;
             _stateManagerMutatorRef.SET_OBJECT_COLLIDED_WITH_HAND(other.gameObject);
             isCurrentlyColliding = true;
         }
     }
 }