14 lines
323 B
C#
14 lines
323 B
C#
using Godot;
|
|
|
|
public partial class SpawnPoint : Node3D {
|
|
Options _Options;
|
|
Reference _Reference;
|
|
|
|
public override void _EnterTree() {
|
|
_Reference = GetNode<Reference>("/root/Reference");
|
|
_Reference.PlayerSpawnPoints = this.GetChild<Node3D>(0);
|
|
_Reference.ItemSpawnPoints = this.GetChild<Node3D>(1);
|
|
}
|
|
|
|
}
|