Esempio n. 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.GetComponent <prop>())
     {
         if (_objectCollidedWithHand == null)
         {
             _stateManagerMutatorRef.SET_OBJECT_COLLIDED_WITH_HAND(other.gameObject);
         }
     }
 }
Esempio n. 2
0
 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;
         }
     }
 }