From 76ed9312e6c6dda7d888999d0361207da240cc29 Mon Sep 17 00:00:00 2001 From: Syntriax Date: Sun, 20 Nov 2022 18:47:28 +0300 Subject: [PATCH] Removed Trigger References --- Actions/PlatformerJump.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Actions/PlatformerJump.cs b/Actions/PlatformerJump.cs index 402c354..dcdfe36 100644 --- a/Actions/PlatformerJump.cs +++ b/Actions/PlatformerJump.cs @@ -1,10 +1,8 @@ using Syntriax.Modules.ToggleState; -using Syntriax.Modules.Trigger; using UnityEngine; namespace Syntriax.Modules.Action { - [RequireComponent(typeof(Rigidbody2D))] public class PlatformerJump : ActionBaseWithDeactivation { @@ -29,13 +27,11 @@ namespace Syntriax.Modules.Action protected IToggleState gameObjectToggleState = null; protected bool airSuspension = false; - protected IGroundTrigger groundCheck = null; protected Rigidbody2D rigid = null; protected virtual void Start() { rigid = GetComponent(); - groundCheck = GetComponentInChildren(); gameObjectToggleState = GetComponent(); FallMultiplier = fallMultiplier; @@ -76,9 +72,7 @@ namespace Syntriax.Modules.Action if (!gameObjectToggleState.IsToggledNullChecked()) return; - if (groundCheck.IsTrigerred) - Jump(); - + Jump(); airSuspension = true; } }