blob: 32f5cc061361df902e83d5a58ac94798c63ac177 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
extends Counter
class_name CounterBase
func setup(rename: String, neighbors: Array):
super.setup(rename, neighbors)
match kind:
CounterKind.OUTER_CORNER:
base.add_child(load("res://models/prefabs/map/kitchencounter_outercorner.tscn").instantiate())
CounterKind.STRAIGHT:
base.add_child(load("res://models/prefabs/map/kitchencounter_straight_A.tscn").instantiate())
CounterKind.STRAIGHT_BACKSPLASH:
base.add_child(load("res://models/prefabs/map/kitchencounter_straight_A_backsplash.tscn").instantiate())
turn_facing(facing)
|