From 28b89971f0d3fd246443450c87f33996716facb3 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 15 Sep 2021 19:58:59 +0800 Subject: *misc --- Assets/Scripts/Unit/Components/UnitState/PCState.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'Assets/Scripts/Unit/Components/UnitState/PCState.cs') 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 -- cgit v1.1-26-g67d0