make unit node inheritance hierarchy

This commit is contained in:
2024-10-07 22:43:18 +10:00
parent 54e0ad846c
commit 50cb83ad7c
13 changed files with 209 additions and 586 deletions

View File

@@ -13,7 +13,7 @@ const MAX_CARRY: int = 8
var state: AntGathererState = AntGathererState.WANDERING
@onready var gathering: Gathering = $Gathering
@onready var skeleton: Skeleton3D = $Armature/Skeleton3D
@onready var skeleton: Skeleton3D = $AntModel/Armature/Skeleton3D
static func get_cost() -> int:

View File

@@ -12,7 +12,7 @@ const ITEM_BONE_NAME = "Nitwit_item_"
var state: AntNitwitState = AntNitwitState.WANDERING
@onready var gathering: Gathering = $Gathering
@onready var skeleton: Skeleton3D = $Armature/Skeleton3D
@onready var skeleton: Skeleton3D = $AntModel/Armature/Skeleton3D
static func get_cost() -> int:

View File

@@ -94,7 +94,7 @@ func _animate(delta: float) -> void:
velocity.length() / MOVE_SPEED,
delta * 8
)
# animation_tree.set("parameters/locomotion/blend_position", locomotion_value)
animation_tree.set("parameters/locomotion/blend_position", locomotion_value)
func _wander(delta: float) -> void: