How did you manage this
This commit is contained in:
3 files changed
+3
-32
No files matched your search
@@ -9,6 +9,6 @@ public partial class PauseMenuContinueButton : Button {
|
||||
Globals.IsPaused = false;
|
||||
GetNode<Control>("../..").QueueFree();
|
||||
|
||||
if (Utils.IsMobile()) GetNode<Node2D>("/root/Game/CanvasLayer/MobileButtons").Visible = true;
|
||||
if (Utils.IsMobile()) GetNode<Control>("/root/Game/CanvasLayer/MobileButtons").Visible = true;
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -14,7 +14,7 @@ public partial class Player : Node2D {
|
||||
|
||||
Position = new Vector2(x: DisplayServer.WindowGetSize().X / 2, y: (WindowSize.Y / WindowScale.Y) - 100);
|
||||
|
||||
if (Utils.IsMobile()) GetNode<Node2D>("/root/Game/CanvasLayer/MobileButtons").Visible = true;
|
||||
if (Utils.IsMobile()) GetNode<Control>("/root/Game/CanvasLayer/MobileButtons").Visible = true;
|
||||
}
|
||||
|
||||
public override void _Process(double delta) {
|
||||
@@ -114,7 +114,7 @@ public partial class Player : Node2D {
|
||||
private void MobileJumpMoveDown() => doJump = true;
|
||||
private void MobileJumpMoveUp() => doJump = false;
|
||||
private void MobilePausePressed() {
|
||||
if (Utils.IsMobile()) GetNode<Node2D>("/root/Game/CanvasLayer/MobileButtons").Visible = false;
|
||||
if (Utils.IsMobile()) GetNode<Control>("/root/Game/CanvasLayer/MobileButtons").Visible = false;
|
||||
|
||||
PackedScene PauseMenu = GD.Load<PackedScene>("res://Prefabs/PauseMenu.tscn");
|
||||
|
||||
|
||||
Reference in new issue
Block a user