feat: 重构多人游戏界面和代码,使用文件存储游戏配置,重构底层代码
This commit is contained in:
4
Main.cs
4
Main.cs
@ -41,6 +41,8 @@ public partial class Main : Node2D
|
||||
// board.Visible = false;
|
||||
// board.Can
|
||||
global = GetNode<Global>("/root/Global");
|
||||
global.GlobalTheme = GetChild<Control>(GetChildCount() - 1).Theme;
|
||||
global.ConfigFlush();
|
||||
}
|
||||
|
||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
@ -54,7 +56,7 @@ public partial class Main : Node2D
|
||||
|
||||
private void GoToMultiPlayer() {
|
||||
// global.GotoScene("res://Scenes/MultiPlayer.tscn");
|
||||
global.GotoScene("res://Scenes/Menu.tscn");
|
||||
global.GotoScene("res://Scenes/GameLobby.tscn");
|
||||
}
|
||||
|
||||
private void GoToSetting() {
|
||||
|
Reference in New Issue
Block a user