alone management
This commit is contained in:
@@ -28,6 +28,8 @@ func _ready() -> void:
|
||||
|
||||
func _on_chara_resource_changed() -> void:
|
||||
if guest == null:
|
||||
empty.visible = true
|
||||
character.visible = false
|
||||
return
|
||||
|
||||
if character != null:
|
||||
@@ -40,6 +42,9 @@ func _on_chara_resource_changed() -> void:
|
||||
|
||||
func set_guest(p_guest: MaskedChara) -> void:
|
||||
if p_guest == null:
|
||||
guest = null
|
||||
empty.visible = true
|
||||
character.visible = false
|
||||
return
|
||||
|
||||
guest = p_guest
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
[gd_scene format=3 uid="uid://l0hl170iqkgx"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cuojjiwxidmwu" path="res://scenes/seat/seat.gd" id="1_pceab"]
|
||||
[ext_resource type="Resource" uid="uid://c25kg6um2k1dy" path="res://resources/guests/duchex_mute.tres" id="2_i14o5"]
|
||||
[ext_resource type="PackedScene" uid="uid://bvpyqyftqhy45" path="res://scenes/character/character.tscn" id="3_dxmy0"]
|
||||
[ext_resource type="Resource" uid="uid://c87odmn680x7" path="res://resources/characters/duchex.tres" id="4_ipxud"]
|
||||
[ext_resource type="Texture2D" uid="uid://cftllq6l7xclt" path="res://icon.svg" id="4_wnjs1"]
|
||||
@@ -11,13 +10,11 @@ size = Vector2(128, 128)
|
||||
|
||||
[node name="Seat" type="Area2D" unique_id=1604639021]
|
||||
script = ExtResource("1_pceab")
|
||||
guest = ExtResource("2_i14o5")
|
||||
|
||||
[node name="Character" parent="." unique_id=138741531 instance=ExtResource("3_dxmy0")]
|
||||
chara_resource = ExtResource("4_ipxud")
|
||||
|
||||
[node name="Empty" type="Sprite2D" parent="." unique_id=357649392]
|
||||
visible = false
|
||||
texture = ExtResource("4_wnjs1")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1054126207]
|
||||
|
||||
Reference in New Issue
Block a user