You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
546 B
20 lines
546 B
using System.Globalization; |
|
|
|
public partial class Game : Node |
|
{ |
|
static Game _game; |
|
public static Game Instance => _game |
|
??= ((SceneTree)Engine.GetMainLoop()).Root.GetNode<Game>("Game"); |
|
|
|
[Export] public Player LocalPlayer { get; set; } |
|
|
|
public MultiplayerManager MultiplayerManager { get; private set; } |
|
|
|
public override void _EnterTree() |
|
{ |
|
// Set invariant culture so formatting is consistent. |
|
CultureInfo.CurrentCulture = CultureInfo.InvariantCulture; |
|
|
|
MultiplayerManager = GetNode<MultiplayerManager>("MultiplayerManager"); |
|
} |
|
}
|
|
|