Made local_version be defined on _ready()
This commit is contained in:
parent
a737ce4821
commit
62cdd67de4
@ -51,12 +51,14 @@ func _process(_delta):
|
||||
# Set the Local_version label
|
||||
if local_version:
|
||||
$Panel/Panel/Local_version.text = "Local Version: "+local_version
|
||||
|
||||
if newest_version:
|
||||
$Panel/Panel/Online_version.text = "Online Version: "+newest_version
|
||||
|
||||
# When everything is loaded,
|
||||
func _ready():
|
||||
# Get the installed version
|
||||
local_version = Versions.get_version()
|
||||
|
||||
# Randomize
|
||||
random = RandomNumberGenerator.new()
|
||||
random.randomize()
|
||||
|
Loading…
Reference in New Issue
Block a user