diff options
author | chai <chaifix@163.com> | 2021-09-15 19:58:59 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-15 19:58:59 +0800 |
commit | 28b89971f0d3fd246443450c87f33996716facb3 (patch) | |
tree | f7ab8055490d06a39ea52de6ab8f6f701c6b3733 /Assets/Scripts/Unit/Components/UnitState/PCState.cs | |
parent | 5c559adec82205c3ce9427d6bfef5535867e2553 (diff) |
*misc
Diffstat (limited to 'Assets/Scripts/Unit/Components/UnitState/PCState.cs')
-rw-r--r-- | Assets/Scripts/Unit/Components/UnitState/PCState.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Assets/Scripts/Unit/Components/UnitState/PCState.cs b/Assets/Scripts/Unit/Components/UnitState/PCState.cs index 0880d369..afedf6d8 100644 --- a/Assets/Scripts/Unit/Components/UnitState/PCState.cs +++ b/Assets/Scripts/Unit/Components/UnitState/PCState.cs @@ -147,14 +147,26 @@ public partial class PCState : UnitState }
- void TryTianyin()
+ bool TryTianyin()
{
if (Input.GetKeyDown("o"))
{
float offset = owner.isTowardRight ? 1.2f : -1.2f;
TestErika.Instance.monster.owner.center = owner.center + new Vector3(offset, 0.5f, 0);
((MonsterController)TestErika.Instance.monster.owner).monsterState.ChangeState(MonsterState.EUnitState.HitInAir, new MonsterState.HitInAirParam(), true);
+ return true;
} + return false; + }
+
+ bool TryAttackToAir()
+ {
+ if(Input.GetKey("s") && Input.GetKeyDown("j"))
+ {
+ ChangeState(EUnitState.AttackToAir, new SkillParam());
+ return true;
+ }
+ return false;
}
}
\ No newline at end of file |