blob: 78fc53fdb6c56435f3e95f847cb1cca5c8fd41a1 (
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.gameloop.current_turns < GlobalVariables.gameloop.turns:
GlobalVariables.player.target = parent
func _on_mouse_exited():
if !parent.do_scanning:
return
if GlobalVariables.is_snapping:
GlobalVariables.player.target = null
|