Пример #1
0
 private bool checkCanInteractWithFilter(GameObject actionGraphGO, FilterTriggerAction filter)
 {
     if (DataEntityCollection.TryGetComponent <SessionIdData>(PlayerHandle, out var component))
     {
         return(filter.CanInteract(component.SessionId, actionGraphGO));
     }
     return(false);
 }
Пример #2
0
 private bool checkCanInteractWithFilter(FilterTriggerAction filter)
 {
     if (AvatarDataHandle.TryGetPlayerHandle(base.gameObject, out var handle) && dataEntityCollection.TryGetComponent <SessionIdData>(handle, out var component) && filter.CanInteract(component.SessionId, base.gameObject) && (string.IsNullOrEmpty(filter.OwnerTag) || CompareTag(filter.OwnerTag)))
     {
         return(true);
     }
     return(false);
 }