Created
April 6, 2020 13:00
-
-
Save doctor-g/99a8445db0a417308569e678f7e4e435 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node | |
class_name BuildNumber | |
const BUILD_NUMBER_PATH := "res://build_number.tres" | |
var value : int | |
func _init(): | |
var f:File = File.new() | |
f.open(BUILD_NUMBER_PATH, File.READ) | |
var t = f.get_as_text() | |
value = int(t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment