make unit node inheritance hierarchy
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user