15 lines
423 B
GDScript
15 lines
423 B
GDScript
extends StaticBody3D
|
|
|
|
@export var light_color: Color
|
|
|
|
func _ready() -> void:
|
|
pass
|
|
#if self.name == "LightOrb":
|
|
#print(self.name)
|
|
#self.get_child(0).mesh.material.albedo_color = light_color
|
|
#self.get_child(0).mesh.material.emission = light_color
|
|
#if self.name == "LightOrb3":
|
|
#print(self.name)
|
|
#self.get_child(0).mesh.material.albedo_color = light_color
|
|
#self.get_child(0).mesh.material.emission = light_color
|