diff options
author | chai <chaifix@163.com> | 2021-09-16 09:52:33 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-16 09:52:33 +0800 |
commit | 8b65edb43be0945203633b33d7a62c81ab3f05ce (patch) | |
tree | bb5186baf27e58ca96389843907f9906380fd8e0 /Assets/Scripts/Unit/Components/UnitState/PCState.cs | |
parent | 28b89971f0d3fd246443450c87f33996716facb3 (diff) |
+unit effect
Diffstat (limited to 'Assets/Scripts/Unit/Components/UnitState/PCState.cs')
-rw-r--r-- | Assets/Scripts/Unit/Components/UnitState/PCState.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Assets/Scripts/Unit/Components/UnitState/PCState.cs b/Assets/Scripts/Unit/Components/UnitState/PCState.cs index afedf6d8..c7cab21c 100644 --- a/Assets/Scripts/Unit/Components/UnitState/PCState.cs +++ b/Assets/Scripts/Unit/Components/UnitState/PCState.cs @@ -131,7 +131,7 @@ public partial class PCState : UnitState } } - void TryTeleport()
+ bool TryTeleport()
{
if (Input.GetKeyDown("i"))
//if (InputManager.Instance.TryCommand(0.5f, KeyCode.I))
@@ -139,12 +139,14 @@ public partial class PCState : UnitState float offset = owner.isTowardRight ? 1.5f : -1.5f;
owner.center = TestErika.Instance.monster.owner.center + new Vector3(offset, -0.5f, 0);
TurnAround(!owner.isTowardRight);
+ return true;
} + return false; } - void TryBlink()
+ bool TryBlink()
{
-
+ return false;
}
bool TryTianyin()
@@ -161,7 +163,7 @@ public partial class PCState : UnitState bool TryAttackToAir()
{
- if(Input.GetKey("s") && Input.GetKeyDown("j"))
+ if(Input.GetKey("w") && Input.GetKeyDown("j"))
{
ChangeState(EUnitState.AttackToAir, new SkillParam());
return true;
|