This commit is contained in:
Фёдор Веселов 2024-10-07 18:18:59 +05:00
commit 2e3226b5c1
14 changed files with 200 additions and 10 deletions

View file

@ -0,0 +1,19 @@
using Godot;
using Newlon.Components.Zombies;
using Newlon.Systems.Effects;
namespace Newlon.Components.Plants;
public partial class ReturnEffect : Node
{
[Export]
private Effect _effectToReturn;
public void OnDamageRecieved(int delta,Node origin)
{
if (origin is RuntimeZombieData zombie)
{
zombie.GiveEffect(_effectToReturn);
}
}
}