2025-01-18 12:49:14 +00:00
|
|
|
using Godot;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using Godot.Collections;
|
|
|
|
|
|
|
|
namespace Rokojori
|
|
|
|
{
|
2025-06-10 13:16:36 +00:00
|
|
|
[Tool]
|
|
|
|
[GlobalClass,Icon("res://addons/rokojori_action_library/Icons/Interactable.svg")]
|
|
|
|
public partial class Interactable:Node3D, iEnablable
|
2025-01-18 12:49:14 +00:00
|
|
|
{
|
2025-06-10 13:16:36 +00:00
|
|
|
[Export]
|
|
|
|
public bool enabled = true;
|
|
|
|
public bool IsEnabled() => enabled;
|
|
|
|
public void SetEnabled( bool enabled ) { this.enabled = enabled; }
|
|
|
|
|
2025-01-18 12:49:14 +00:00
|
|
|
[Export]
|
|
|
|
public Action onInteraction;
|
|
|
|
}
|
|
|
|
}
|