Skip to content

Commit

Permalink
Remove polling from 'RallyPoint'
Browse files Browse the repository at this point in the history
  • Loading branch information
Scony committed Jul 3, 2023
1 parent 8b5f3c9 commit 2abb5ba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source/match/units/traits/RallyPoint.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ extends Node3D

func _ready():
_animation_player.play("idle")


func _process(_delta):
# TODO: calculate based on signals to avoid polling
visible = _unit.is_in_group("selected_units")
_unit.selected.connect(show)
_unit.deselected.connect(hide)

0 comments on commit 2abb5ba

Please sign in to comment.