mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-24 16:20:08 +01:00
In the Arrow scene, check whether source exists before using it
This commit is contained in:
parent
ad5d5836d6
commit
0da9bd3193
1 changed files with 3 additions and 0 deletions
3
arrow.gd
3
arrow.gd
|
@ -14,6 +14,9 @@ func _process(_delta):
|
||||||
#position = -repository.objects[source].position
|
#position = -repository.objects[source].position
|
||||||
position = Vector2(0,0)
|
position = Vector2(0,0)
|
||||||
|
|
||||||
|
if not (repository and repository.objects.has(source)):
|
||||||
|
return
|
||||||
|
|
||||||
var start = repository.objects[source].position
|
var start = repository.objects[source].position
|
||||||
var end = start + Vector2(0, 60)
|
var end = start + Vector2(0, 60)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue