summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Components/UnitState/PCState.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Unit/Components/UnitState/PCState.cs')
-rw-r--r--Assets/Scripts/Unit/Components/UnitState/PCState.cs14
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