Strawberry Explosion

This commit is contained in:
Marco Giacomelli 2024-05-15 15:48:48 +02:00
commit b9d03efbb8
5 changed files with 42 additions and 6 deletions

View file

@ -55,7 +55,7 @@ public partial class PlayerMovement : CharacterBody2D
{
if (Input.IsActionJustPressed("shoot"))
{
Debug.WriteLine("Shoot");
//Debug.WriteLine("Shoot");
Bullet bullet = BulletScene.Instantiate<Bullet>();
Owner.AddChild(bullet);
bullet.Transform = Muzzle.GlobalTransform;