blob: 443fada4552f64280127dc033825c04727318a2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
extends Area2D
var parent : NumberNode
func _ready():
parent = $".."
func _on_mouse_entered():
if !parent.do_scanning:
return
if GlobalVariables.is_snapping && GlobalVariables.player.legal:
GlobalVariables.player.target = parent
func _on_mouse_exited():
if !parent.do_scanning:
return
if GlobalVariables.is_snapping:
GlobalVariables.player.target = null
|