Now I can make any version either not be able to access the servers or not be playable at all. So thats good.
13 lines
399 B
C#
13 lines
399 B
C#
using Godot;
|
|
using System;
|
|
|
|
public partial class OutdatedVersionLogic : Control {
|
|
public override void _Ready() {
|
|
if (Globals.AccessLevel == "client") {
|
|
GetNode<Label>("Header/SecondaryText").Text = "You can not access the servers!";
|
|
} else if (Globals.AccessLevel == "none") {
|
|
GetNode<Button>("Buttons/ContinueButton").Visible = false;
|
|
}
|
|
}
|
|
}
|