Пример #1
0
 private bool TryHighlightObject(IInteractObject obj)
 {
     if (obj != null)
     {
         if (obj.TryHighlight(_taker))
         {
             _highlightedObj = obj;
             return(true);
         }
     }
     return(false);
 }
Пример #2
0
 private void TryHilight()
 {
     if (!TryHighlightTakebeleObjects())
     {
         if (!TryHighlightReactionObjects())
         {
             if (!TryHighlightObjectsContainers())
             {
                 _highlightedObj = null;
             }
         }
     }
 }