Fix turn panel.

This commit is contained in:
Relintai 2020-04-26 00:57:32 +02:00
parent 74038429b7
commit cb987df446

View File

@ -13,11 +13,15 @@ var last_pointer_position : Vector2 = Vector2()
var currentPointerIDX = INACTIVE_IDX;
var listener : Entity = null
var listener : Node = null
func _ready():
parent = get_node("..")
listener = get_node(listenerNodePath) as Entity
listener = get_node(listenerNodePath)
if listener != null:
if not listener.has_method("queue_camera_rotation"):
listener = null
set_process_input(true)