From 64061aee5d7849f348f07b78fc3f96ad7555c147 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 2 Nov 2020 09:00:15 +0800 Subject: *jump --- Assets/Scripts/Avatar/Conditions/ConditionJumpDone.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Assets/Scripts/Avatar/Conditions/ConditionJumpDone.cs') diff --git a/Assets/Scripts/Avatar/Conditions/ConditionJumpDone.cs b/Assets/Scripts/Avatar/Conditions/ConditionJumpDone.cs index 8d900348..1f213a50 100644 --- a/Assets/Scripts/Avatar/Conditions/ConditionJumpDone.cs +++ b/Assets/Scripts/Avatar/Conditions/ConditionJumpDone.cs @@ -5,14 +5,16 @@ using UnityEngine; public class ConditionJumpDone : ConditionBase { JumpAbility m_Jump; + float m_T; - public ConditionJumpDone(JumpAbility jump) + public ConditionJumpDone(JumpAbility jump, float t = 1f) { m_Jump = jump; - } + m_T = t; + } public override bool Evaluate() { - return m_Jump.IsJumpDone(); + return m_Jump.IsJumpDone(m_T); } } -- cgit v1.1-26-g67d0