rj-action-library/Runtime/Interactions/Interactable.cs

20 lines
480 B
C#
Raw Normal View History

2025-01-18 12:49:14 +00:00
using Godot;
using System.Collections;
using System.Collections.Generic;
using Godot.Collections;
namespace Rokojori
{
[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
{
[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;
}
}