VFX Assetts Added
This commit is contained in:
@@ -20,16 +20,16 @@ public partial class Projectile : Node3D
|
||||
|
||||
public void OnReady()
|
||||
{
|
||||
ProjectileHitbox.AreaEntered += Hitbox_AreaEntered;
|
||||
ProjectileHitbox.AreaEntered += Hitbox_AreaEntered;
|
||||
}
|
||||
|
||||
public void Fire()
|
||||
{
|
||||
AnimationPlayer.Play("Fire");
|
||||
AnimationPlayer.Play("Fire");
|
||||
}
|
||||
|
||||
private void Hitbox_AreaEntered(Area3D area)
|
||||
{
|
||||
_player.TakeDamage(new AttackData(AttackData.Damage, AttackData.ElementType));
|
||||
_player.TakeDamage(new AttackData(AttackData.Damage, AttackData.ElementType));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user