24 lines
405 B
C#
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)
|
|
{
|
|
|
|
}
|
|
}
|