mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 06:45:33 +00:00
24 lines
No EOL
547 B
C#
24 lines
No EOL
547 B
C#
using Godot;
|
|
|
|
namespace Cirno.Scripts.Actors._3D;
|
|
|
|
public partial class LaserStarterTest3D : Node3D, IActivable
|
|
{
|
|
[Export]
|
|
private Laser _laser;
|
|
|
|
public bool Activate(ActivationType activationType = ActivationType.Toggle)
|
|
{
|
|
GD.Print("Activating laser");
|
|
_laser.SpawnFromDirection(_laser.GlobalPosition, Vector3.Forward);
|
|
|
|
_laser.SpawnFromTarget(_laser.GlobalPosition, _laser.GlobalPosition + new Vector3(20, 0, 0));
|
|
|
|
return true;
|
|
}
|
|
|
|
public void Toggle()
|
|
{
|
|
|
|
}
|
|
} |