test-client-godot/game_scene/Game/Box.gd

8 lines
276 B
GDScript3
Raw Normal View History

extends RigidBody
func _on_Box_sleeping_state_changed():
# if self.sleeping:
# $MeshInstance.get_surface_material(0).albedo_color = Color( 0.0, 1.0, 0.0, 1 )
# else:
# $MeshInstance.get_surface_material(0).albedo_color = Color( 0.0, 0.0, 1.0, 1 )
pass