13 lines
364 B
C#
13 lines
364 B
C#
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));
|
|
}
|
|
}
|