Timescalable components

This commit is contained in:
Rendo 2025-07-08 00:05:23 +05:00
commit e527d1da44
11 changed files with 83 additions and 24 deletions

View file

@ -1,6 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://b1hjjbdwf1rtc"]
[gd_scene load_steps=3 format=3 uid="uid://b1hjjbdwf1rtc"]
[ext_resource type="Script" uid="uid://dli2i6albvugt" path="res://scripts/components/plants/RuntimePlantData.cs" id="1_324sd"]
[ext_resource type="Script" uid="uid://dwlwi42smgxkb" path="res://scripts/components/TimeScalableAnimationTree.cs" id="2_e75pf"]
[node name="PlantTemplate" type="Node2D"]
script = ExtResource("1_324sd")
@ -10,8 +11,10 @@ use_parent_material = true
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
[node name="AnimationTree" type="AnimationTree" parent="."]
[node name="AnimationTree" type="AnimationTree" parent="." node_paths=PackedStringArray("entity")]
anim_player = NodePath("../AnimationPlayer")
script = ExtResource("2_e75pf")
entity = NodePath("..")
[node name="Hitbox" type="Area2D" parent="."]
collision_layer = 2