fixed a few issues
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 30s
Create tag and build when new code gets to main / Export (push) Successful in 6m0s

This commit is contained in:
2026-05-06 16:25:56 +02:00
parent bcc748ca6b
commit 7ba4a3db3f
22 changed files with 133 additions and 660 deletions

View File

@@ -3,7 +3,7 @@ using System;
using Movementtests.interfaces;
[GlobalClass, Icon("res://assets/ui/IconGodotNode/node_3D/icon_target.png")]
public partial class FixedDashthroughTarget : AnimatableBody3D, ITargetable, IStunnable
public partial class FixedDashthroughTarget : AnimatableBody3D, ITargetable, IDisableable
{
public Vector3 GetTargetGlobalPosition()
{
@@ -16,15 +16,15 @@ public partial class FixedDashthroughTarget : AnimatableBody3D, ITargetable, ISt
_defaultCollisionMask = CollisionMask;
}
public bool IsStunned { get; set; }
public float StunDuration { get; set; } = 0.1f;
public void Stun()
public bool IsDisabled { get; set; }
public float DisableDuration { get; set; } = 0.1f;
public void Disable()
{
_defaultCollisionMask = 0;
GetTree().CreateTimer(StunDuration).Timeout += Unstun;
GetTree().CreateTimer(DisableDuration).Timeout += Enable;
}
public void Unstun()
public void Enable()
{
_defaultCollisionMask = CollisionMask;
}