Simple interactable rework

This commit is contained in:
Michal Pikulski
2025-10-31 13:50:08 +01:00
parent 095f21908b
commit 917230e10a
15 changed files with 1897 additions and 103 deletions

View File

@@ -20,7 +20,7 @@ namespace Levels
/// </summary>
public LevelSwitchData switchData;
private SpriteRenderer _iconRenderer;
private Interactable _interactable;
private InteractableBase _interactable;
// Settings reference
private IInteractionSettings _interactionSettings;
@@ -35,7 +35,7 @@ namespace Levels
_isActive = true;
if (_iconRenderer == null)
_iconRenderer = GetComponent<SpriteRenderer>();
_interactable = GetComponent<Interactable>();
_interactable = GetComponent<InteractableBase>();
if (_interactable != null)
{
_interactable.characterArrived.AddListener(OnCharacterArrived);