Snapshot before project reorganization
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user