newlon/scripts/systems/effects/PermanentSpeedEffect.cs
2025-07-30 00:56:53 +05:00

24 lines
405 B
C#

using Godot;
using Newlon.Components;
namespace Newlon.Systems.Effects;
[GlobalClass]
public partial class PermanentSpeedEffect : Effect
{
[Export] public float Multiplier;
public override void Enter(Entity target)
{
target.LocalTimescale *= Multiplier;
}
public override void Exit(Entity target)
{
}
public override void Process(Entity target)
{
}
}