diff options
Diffstat (limited to 'Units/Unit.gd')
-rw-r--r-- | Units/Unit.gd | 12 |
1 files changed, 6 insertions, 6 deletions
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) |