diff options
author | chai <chaifix@163.com> | 2020-11-02 09:00:15 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-11-02 09:00:15 +0800 |
commit | 64061aee5d7849f348f07b78fc3f96ad7555c147 (patch) | |
tree | 77ea9e4dc7a34e7d324c7cc9f2f8d6e978605d8f /Assets/Scripts/Avatar/Conditions/ConditionJumpDone.cs | |
parent | e6fc3425078c4997bc035ce3636e9a756e697c4b (diff) |
*jump
Diffstat (limited to 'Assets/Scripts/Avatar/Conditions/ConditionJumpDone.cs')
-rw-r--r-- | Assets/Scripts/Avatar/Conditions/ConditionJumpDone.cs | 8 |
1 files changed, 5 insertions, 3 deletions
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);
}
}
|