Snapshot before project reorganization

This commit is contained in:
2026-02-12 16:28:36 +01:00
parent 8758d6eaeb
commit 9b7bb2aa62
27 changed files with 1864 additions and 119 deletions
@@ -27,12 +27,12 @@ namespace Unheimlich.Handlers.DetectiveBoard
_inspectableItem = GetComponent<InspectableItem>();
}
public override void Interact(GameObject interactor)
public override void Interact()
{
if (_unlockOnlyOnce && _hasUnlocked)
{
if (_inspectableItem != null)
_inspectableItem.Interact(interactor);
_inspectableItem.Interact();
return;
}
@@ -40,7 +40,7 @@ namespace Unheimlich.Handlers.DetectiveBoard
{
Debug.LogError("[ClueUnlockOnInteraction] No clue data assigned!");
if (_inspectableItem != null)
_inspectableItem.Interact(interactor);
_inspectableItem.Interact();
return;
}
@@ -54,7 +54,7 @@ namespace Unheimlich.Handlers.DetectiveBoard
if (_inspectableItem != null)
{
_inspectableItem.Interact(interactor);
_inspectableItem.Interact();
}
}
}
@@ -73,7 +73,7 @@ namespace Unheimlich.Interactions.Dialogues
}
}
public override void Interact(GameObject interactor)
public override void Interact()
{
if (DialogueManager.Instance == null)
return;
@@ -48,7 +48,7 @@ namespace Unheimlich.Interactions.Core
if (interactAction != null && interactAction.WasPressedThisFrame())
{
if (_currentInteractable != null)
_currentInteractable.Interact(transform.parent.gameObject);
_currentInteractable.Interact();
}
}
@@ -12,6 +12,6 @@ namespace Unheimlich.Interactions.Core
[Tooltip("Text displayed when the player looks at the object")]
public string InteractionText = "Interact";
public abstract void Interact(GameObject gameObject);
public abstract void Interact();
}
}