Set spawn points
This commit is contained in:
11
Scripts/SpawnPoint.cs
Normal file
11
Scripts/SpawnPoint.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Godot;
|
||||
|
||||
public partial class SpawnPoint : Marker3D
|
||||
{
|
||||
// Called when the node enters the scene tree for the first time.
|
||||
public override void _Ready()
|
||||
{
|
||||
var player = GetTree().GetFirstNodeInGroup("Player") as TestCharacter;
|
||||
player.Position = Position;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user