fix: rename class_name param in character_placeholder.gd (GDScript reserved keyword)
This commit is contained in:
@@ -10,9 +10,9 @@ const CLASS_COLORS: Dictionary = {
|
||||
}
|
||||
const DEFAULT_COLOR := Color(0.65, 0.65, 0.65) # Grau
|
||||
|
||||
func set_color(class_name: String) -> void:
|
||||
func set_color(archetype: String) -> void:
|
||||
var mat := StandardMaterial3D.new()
|
||||
mat.albedo_color = CLASS_COLORS.get(class_name, DEFAULT_COLOR)
|
||||
mat.albedo_color = CLASS_COLORS.get(archetype, DEFAULT_COLOR)
|
||||
($Capsule as MeshInstance3D).material_override = mat
|
||||
|
||||
func set_label(player_name: String) -> void:
|
||||
|
||||
Reference in New Issue
Block a user