iuno
This commit is contained in:
@@ -34,7 +34,7 @@ func _process(delta: float) -> void:
|
||||
func _updatePosition() -> void:
|
||||
# Walk up the tree until BattleScene is found.
|
||||
var battleScene:BattleScene = null
|
||||
var currentNode:Node = self
|
||||
var currentNode:Node = self.get_parent()
|
||||
while currentNode != null:
|
||||
if currentNode is BattleScene:
|
||||
battleScene = currentNode
|
||||
@@ -42,7 +42,7 @@ func _updatePosition() -> void:
|
||||
currentNode = currentNode.get_parent()
|
||||
|
||||
if battleScene == null:
|
||||
push_error("BattleCursorIcon could not find BattleScene in parent nodes.")
|
||||
#push_error("BattleCursorIcon could not find BattleScene in parent nodes.")
|
||||
return
|
||||
|
||||
var targetFighter:BattleFighterScene = battleScene.getFighterSceneAtPosition(battlePosition)
|
||||
|
||||
Reference in New Issue
Block a user