Refactor projectiles
This commit is contained in:
@@ -14,13 +14,12 @@ point_count = 4
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_mgm2i"]
|
||||
height = 8.481
|
||||
|
||||
[node name="CutterShot" type="Node3D" node_paths=PackedStringArray("_pathFollow", "_sprite")]
|
||||
[node name="CutterShot" type="Node3D" node_paths=PackedStringArray("_sprite")]
|
||||
script = ExtResource("1_7xtlh")
|
||||
_pathFollow = NodePath("Path3D/PathFollow3D")
|
||||
_sprite = NodePath("Path3D/PathFollow3D/RigidBody3D/CollisionShape3D/Sprite3D")
|
||||
Cooldown = 0.3
|
||||
_soundEffect = ExtResource("2_qmvk7")
|
||||
_projectileSpeed = 3.0
|
||||
_soundEffect = ExtResource("2_qmvk7")
|
||||
|
||||
[node name="Path3D" type="Path3D" parent="."]
|
||||
top_level = true
|
||||
@@ -50,10 +49,3 @@ pixel_size = 0.03
|
||||
axis = 1
|
||||
double_sided = false
|
||||
texture = ExtResource("2_6mabu")
|
||||
|
||||
[node name="TTL" type="Timer" parent="."]
|
||||
process_callback = 0
|
||||
wait_time = 0.8
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="TTL" to="." method="OnTimeToLiveTimeout"]
|
||||
|
||||
Reference in New Issue
Block a user