fixed hitbox and timescale working on toggle
This commit is contained in:
parent
bab42e969a
commit
635a832ec8
2 changed files with 3 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ public partial class DragAction : Node
|
|||
toggle = false;
|
||||
can_end = false;
|
||||
EmitSignal(SignalName.DragBegin);
|
||||
GetTree().CreateTimer(0.2).Timeout += OnToggleTimeout;
|
||||
GetTree().CreateTimer(0.2,ignoreTimeScale:true).Timeout += OnToggleTimeout;
|
||||
}
|
||||
if (dragging && can_end && (toggle == false && @event.IsActionReleased("primary_action") || (toggle == true && @event.IsActionPressed("primary_action"))))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue