mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Bullets pooling
This commit is contained in:
parent
37bcf8b2d0
commit
fa3805ecfe
18 changed files with 280 additions and 69 deletions
|
|
@ -33,12 +33,11 @@ public partial class PlayerGrazingModule : PlayerArea2DModule
|
|||
if (!Enabled) return;
|
||||
if (area is Bullet bullet)
|
||||
{
|
||||
if (!bullet.Enabled) return;
|
||||
if (bullet.IsGrazed) return;
|
||||
if (!bullet.BulletInfo.Grazeable) return;
|
||||
if (bullet.BulletOwner is BulletOwner.Player) return;
|
||||
|
||||
GD.Print("Grazed");
|
||||
|
||||
bullet.Graze();
|
||||
//bullet.IsGrazed = true;
|
||||
var baseGrazeValue = bullet.BulletInfo.GrazeValue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue