Skip to content

Instantly share code, notes, and snippets.

@doctor-g
Created April 6, 2020 13:00
Show Gist options
  • Save doctor-g/99a8445db0a417308569e678f7e4e435 to your computer and use it in GitHub Desktop.
Save doctor-g/99a8445db0a417308569e678f7e4e435 to your computer and use it in GitHub Desktop.
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