redirection tiles
This commit is contained in:
parent
3fe903f2b8
commit
f3a6f7a05a
27 changed files with 369 additions and 70 deletions
27
scripts/systems/effects/PermanentSpeedEffect.cs
Normal file
27
scripts/systems/effects/PermanentSpeedEffect.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue