using Godot; using System; public partial class Main : Node { // Don't forget to rebuild the project so the editor knows about the new export variable. public override void _Ready() { NewGame(); } public void NewGame() { //_score = 0; var player = GetNode("Marble"); var startPosition = GetNode("StartPosition"); player.Start(startPosition.Position); var player2 = GetNode("Marble2"); var startPosition2 = GetNode("StartPosition2"); player2.Start(startPosition2.Position); } }