mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 18:45:53 +00:00
Grazing particles and sound
This commit is contained in:
parent
66fbda2b2b
commit
847d33ad4e
14 changed files with 246 additions and 134 deletions
|
|
@ -73,7 +73,7 @@ public partial class Bullet3D : Area3D, IBullet
|
|||
|
||||
public override void _Ready()
|
||||
{
|
||||
_grazeSound = GetNodeOrNull<AudioStreamPlayer3D>("AudioStreamPlayer");
|
||||
_grazeSound = GetNodeOrNull<AudioStreamPlayer3D>("GrazeSound");
|
||||
_grazeParticles = GetNodeOrNull<GpuParticles3D>("GrazeParticles");
|
||||
|
||||
_collisionShape = GetNode<CollisionShape3D>("CollisionShape");
|
||||
|
|
@ -101,6 +101,9 @@ public partial class Bullet3D : Area3D, IBullet
|
|||
{
|
||||
sphere.Radius = bulletInfo.OriginalBulletResource.BulletSize;
|
||||
}
|
||||
|
||||
IsGrazed = false;
|
||||
IsFrozen = false;
|
||||
|
||||
// Need to clone them here
|
||||
// _modifiers = _bulletInfo.TimeModifiers.Select(x => x.MakeClone()).ToList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue