Fix Project
This commit is contained in:
14
Scripts/TestLevel.cs
Normal file
14
Scripts/TestLevel.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Godot;
|
||||
|
||||
public partial class TestLevel : Node3D
|
||||
{
|
||||
[Export]
|
||||
private Marker3D _spawnPoint;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
var players = GetTree().GetNodesInGroup("Player");
|
||||
foreach (TestCharacter player in players)
|
||||
player.Transform = _spawnPoint.Transform;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user