Lets try
This commit is contained in:
@@ -9,6 +9,10 @@ public sealed class HasSmallDistance : IInteractionCheck
|
||||
{
|
||||
var transformSystem = entityManager.System<SharedTransformSystem>();
|
||||
|
||||
if (!entityManager.HasComponent<TransformComponent>(user) ||
|
||||
!entityManager.HasComponent<TransformComponent>(target))
|
||||
return false;
|
||||
|
||||
if (_range <= 0)
|
||||
return true;
|
||||
|
||||
|
||||
@@ -3,5 +3,5 @@ namespace Content.Shared._Amour.InteractionPanel.Checks;
|
||||
public interface IInteractionCheck
|
||||
{
|
||||
public bool IsAvailable(Entity<InteractionPanelComponent> user,
|
||||
Entity<InteractionPanelComponent> target,IEntityManager entityManager);
|
||||
Entity<InteractionPanelComponent> target, IEntityManager entityManager);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user