From 6f17d6c1d458275e8744d57a7f433cc3eb5434d7 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 6 Nov 2024 12:27:51 +0100 Subject: next commit --- Units/Unit.gd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Units/Unit.gd') diff --git a/Units/Unit.gd b/Units/Unit.gd index f5bb6a6..b575e01 100644 --- a/Units/Unit.gd +++ b/Units/Unit.gd @@ -334,10 +334,10 @@ func to_network_data() -> NetworkData: data.target_path = target.get_path() - #data.hp = hp + data.hp = hp - #data.base_speed = base_speed - #data.speed = speed + data.base_speed = base_speed + data.speed = speed #data.texture_path = sprite.texture.resource_path data.sprite_frames_path = sprite.sprite_frames.resource_path @@ -373,10 +373,10 @@ static func from_network_data(data: NetworkData) -> Unit: #unit.target = unit.get_tree().current_scene.get_node(data.target_path) unit.target_path = data.target_path - #unit.hp = data.hp + unit.hp = data.hp - #unit.base_speed = data.base_speed - #unit.speed = data.speed + unit.base_speed = data.base_speed + unit.speed = data.speed #unit.sprite.texture = load(data.texture_path) unit.sprite.sprite_frames = load(data.sprite_frames_path) -- cgit v1.2.3