diff options
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;
|