Traveller/prefab/packsacks/packsack.tscn
霧雨烨 6745324855 Fixed a bug that packsack scenarios did not have item ids set resulting in not being able to pick up the packs.
修复了packsack场景没有设置物品id导致无法捡起背包的bug
2024-06-14 00:44:41 +08:00

21 lines
693 B
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://cn10fimoem04m"]
[ext_resource type="Script" path="res://scripts/item/Packsack.cs" id="1_slakl"]
[ext_resource type="Texture2D" uid="uid://b1twcink38sh0" path="res://sprites/Player.png" id="2_e1ale"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xqyue"]
size = Vector2(41, 57)
[node name="RigidBody2D" type="RigidBody2D"]
collision_layer = 8
collision_mask = 38
script = ExtResource("1_slakl")
Id = "packsack"
[node name="Player" type="Sprite2D" parent="."]
texture = ExtResource("2_e1ale")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-0.5, 3.5)
shape = SubResource("RectangleShape2D_xqyue")