diff options
author | chai <chaifix@163.com> | 2021-01-27 16:30:19 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-27 16:30:19 +0800 |
commit | 6ee18886c8af3858de5e97599b23086823d9f320 (patch) | |
tree | aed86a8c4887586d976410ecd3d14789b2ee3583 /Client/Assets/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs | |
parent | 97da432c35b8c7aaf9dd2c39e2aa4b1f55f36065 (diff) |
*更新Behaviour Designer版本,在最下版本有BUG
Diffstat (limited to 'Client/Assets/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs')
-rw-r--r-- | Client/Assets/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs index 64dfc476..00249ff4 100644 --- a/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs +++ b/Client/Assets/Behavior Designer/Runtime/Basic Tasks/Input/GetAxis.cs @@ -1,8 +1,4 @@ using UnityEngine;
-#if CROSS_PLATFORM_INPUT
-using UnityStandardAssets.CrossPlatformInput;
-#endif
-
namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput
{
@@ -20,11 +16,7 @@ namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityInput public override TaskStatus OnUpdate()
{
-#if CROSS_PLATFORM_INPUT
- var axisValue = CrossPlatformInputManager.GetAxis(axisName.Value);
-#else
var axisValue = Input.GetAxis(axisName.Value);
-#endif
// if variable set to none, assume multiplier of 1
if (!multiplier.IsNone) {
|