16 lines
309 B
C#
16 lines
309 B
C#
using Godot;
|
|
using System.Linq;
|
|
|
|
public partial class P2SpawnPoint : Marker3D
|
|
{
|
|
public override void _Ready()
|
|
{
|
|
var players = GetTree().GetNodesInGroup("Player2");
|
|
if (players.Any())
|
|
{
|
|
var player = (Player2)players.First();
|
|
player.Position = Position;
|
|
}
|
|
}
|
|
}
|