diff options
author | chai <chaifix@163.com> | 2020-10-24 17:30:07 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-10-24 17:30:07 +0800 |
commit | 65ed53a40f990e895305ff17a5e48e3cd6b8785b (patch) | |
tree | 3333c6a9b19fa5602fd8827e582273f602452bec /Assets/Scripts/Test/SaionjiScript_Ability.cs | |
parent | 56a9b3bf4edc56e9c1dd502a469a7a0167751215 (diff) |
*物理系统
Diffstat (limited to 'Assets/Scripts/Test/SaionjiScript_Ability.cs')
-rw-r--r-- | Assets/Scripts/Test/SaionjiScript_Ability.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Assets/Scripts/Test/SaionjiScript_Ability.cs b/Assets/Scripts/Test/SaionjiScript_Ability.cs index 785b93b0..2ed956ef 100644 --- a/Assets/Scripts/Test/SaionjiScript_Ability.cs +++ b/Assets/Scripts/Test/SaionjiScript_Ability.cs @@ -96,6 +96,8 @@ public partial class SaionjiScript : MonoBehaviour ConditionCommandSeq condDRC = new ConditionCommandSeq(new List<GamepadButton> { GamepadButton.Down, GamepadButton.Right, GamepadButton.Circle}, 1f);
ConditionCommandSeq condDLC = new ConditionCommandSeq(new List<GamepadButton> { GamepadButton.Down, GamepadButton.Left, GamepadButton.Circle}, 1f);
+ ConditionHit condIsHit = new ConditionHit(this);
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// common triggers
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -170,6 +172,8 @@ public partial class SaionjiScript : MonoBehaviour attk1.AddTrigger(trigger);
attk1.AddTrigger(triggerTurnRight);
attk1.AddTrigger(triggerTurnLeft);
+ trigger = new Trigger(condIsHit, new ActionLog("hit!!!"));
+ attk1.AddLateTrigger(trigger);
//ConditionAnimRange condAttkRushGhostRange = new ConditionAnimRange(animator, 0f, 0.8f);
//trigger = new Trigger(condAttkRushGhostRange, enableGhost, false);
|