a
This commit is contained in:
@@ -71,7 +71,8 @@ func charge():
|
||||
func dash(on_end: Callable):
|
||||
dash_cooldown_timer.start(dash_cooldown);
|
||||
var target_dir = position.direction_to(target)
|
||||
dash_cooldown_timer.timeout.connect(func(): on_end.call(null, self, target_dir), CONNECT_ONE_SHOT);
|
||||
if (on_end):
|
||||
dash_cooldown_timer.timeout.connect(func(): on_end.call(null, self, target_dir), CONNECT_ONE_SHOT);
|
||||
velocity = move_direction * speed * 5;
|
||||
|
||||
func _ready():
|
||||
|
||||
Reference in New Issue
Block a user