mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-27 20:29:22 +02:00
Fix warnings
This commit is contained in:
parent
d57674acca
commit
4d97430d44
7 changed files with 15 additions and 18 deletions
scenes
|
@ -102,9 +102,12 @@ func set_energy(new_energy):
|
|||
|
||||
func set_id(new_id):
|
||||
id = new_id
|
||||
var texture = load("res://cards/%s.svg" % new_id)
|
||||
if texture:
|
||||
$Image.texture = texture
|
||||
var art_path = "res://cards/%s.svg" % new_id
|
||||
var file = File.new()
|
||||
if file.file_exists(art_path):
|
||||
var texture = load(art_path)
|
||||
if texture:
|
||||
$Image.texture = texture
|
||||
|
||||
func move_back():
|
||||
position = _home_position
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue