Commit of existing data.
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
class_name CollisionState2D
|
||||
extends CollisionShape2D
|
||||
|
||||
@export var Shapes: Dictionary[String, Shape2D]
|
||||
|
||||
func change_shape(id: String) -> void:
|
||||
if id in Shapes:
|
||||
shape = Shapes[id]
|
||||
elif len(Shapes) > 0:
|
||||
shape = Shapes[Shapes.keys()[0]]
|
||||
Reference in New Issue
Block a user