Beeg checkin
This commit is contained in:
12
Player/Capricorn/Attacks/CapricornLaserShot.cs
Normal file
12
Player/Capricorn/Attacks/CapricornLaserShot.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Godot;
|
||||
using System.Linq;
|
||||
|
||||
public partial class CapricornLaserShot : Projectile
|
||||
{
|
||||
public override void _PhysicsProcess(double delta)
|
||||
{
|
||||
var shots = GetChildren().OfType<RigidBody3D>();
|
||||
shots.ElementAt(0).Translate(new Vector3(0, 0, Speed * -(float)delta));
|
||||
shots.ElementAt(1).Translate(new Vector3(0, 0, Speed * (float)delta));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user