newlon/scripts/systems/effects/PermanentSpeedEffect.cs
2025-07-29 05:11:50 +05:00

27 lines
460 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(Node target)
{
if (target is Entity entity)
{
entity.LocalTimescale *= Multiplier;
}
}
public override void Exit(Node target)
{
}
public override void Process(Node target)
{
}
}