new effect system
This commit is contained in:
parent
f3a6f7a05a
commit
22b02c4590
11 changed files with 146 additions and 89 deletions
|
|
@ -8,19 +8,16 @@ public partial class PermanentSpeedEffect : Effect
|
|||
{
|
||||
[Export] public float Multiplier;
|
||||
|
||||
public override void Enter(Node target)
|
||||
public override void Enter(Entity target)
|
||||
{
|
||||
if (target is Entity entity)
|
||||
{
|
||||
entity.LocalTimescale *= Multiplier;
|
||||
}
|
||||
target.LocalTimescale *= Multiplier;
|
||||
}
|
||||
|
||||
public override void Exit(Node target)
|
||||
public override void Exit(Entity target)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Process(Node target)
|
||||
public override void Process(Entity target)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue