12 lines
277 B
C#
12 lines
277 B
C#
using Godot;
|
|
|
|
public partial class DragArea : Area2D
|
|
{
|
|
public override void _InputEvent(Viewport viewport, InputEvent @event, int shapeIdx)
|
|
{
|
|
if (@event is InputEventMouseButton mb && mb.Pressed)
|
|
{
|
|
GD.Print("Area clicked");
|
|
}
|
|
}
|
|
} |