From eb668bfd63f7b7cfb0349cf2e160e456403a6fd1 Mon Sep 17 00:00:00 2001 From: alex-kumpula Date: Sat, 11 Nov 2023 21:05:57 -0700 Subject: [PATCH] Have TASable auto fetch parent if it is null --- godot/TAS_system/TASable.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/godot/TAS_system/TASable.cs b/godot/TAS_system/TASable.cs index 046332b..c76c15e 100644 --- a/godot/TAS_system/TASable.cs +++ b/godot/TAS_system/TASable.cs @@ -2,6 +2,7 @@ using Godot; using System; using System.Collections.Generic; using System.Globalization; +using System.Threading; public partial class TASable : Node { @@ -38,6 +39,11 @@ public partial class TASable : Node public override void _Ready() { + if (this._assignedRigidBody3D is null) + { + this._assignedRigidBody3D = this.GetParent(); + } + TAS_System TAS = GetNode("/root/TAS_System"); TAS.FrameIncremented += this.OnFrameIncremented;