Thomas ICHÉ
4 年前
当前提交
3b17bc62
共有 10 个文件被更改,包括 124 次插入 和 37 次删除
-
73Editor/PropertyDrawers/RegisteredInputActionsPropertyDrawer.cs
-
40Runtime/Input/InputSystemManager.cs
-
2Runtime/LevelScripting/Events/OnButtonDownEvent.cs
-
2Runtime/LevelScripting/Events/OnKeyDownEvent.cs
-
3Runtime/LevelScripting/Events/OnDirectInputEvent.cs
-
20Runtime/LevelScripting/Events/OnInputEvent.cs
-
21Runtime/LevelScripting/Events/OnInputSystemEvent.cs
-
0/Runtime/LevelScripting/Events/OnDirectInputEvent.cs.meta
-
0/Runtime/LevelScripting/Events/OnInputEvent.cs.meta
-
0/Runtime/LevelScripting/Events/OnDirectInputEvent.cs
|
|||
using UnityEngine; |
|||
#if ENABLE_INPUT_SYSTEM
|
|||
using GameplayIngredients.Managers; |
|||
#endif
|
|||
|
|||
namespace GameplayIngredients.Events |
|||
{ |
|||
#if !ENABLE_INPUT_SYSTEM
|
|||
[WarnDisabledModule("New Input System")] |
|||
#endif
|
|||
[AddComponentMenu(ComponentMenu.eventsPath + "On Input Event (New Input System)")] |
|||
public class OnInputEvent : EventBase |
|||
{ |
|||
#if ENABLE_INPUT_SYSTEM
|
|||
public InputSystemManager.RegisteredInputAction inputAction; |
|||
#endif
|
|||
} |
|||
} |
|||
|
|||
|
|
|||
#if ENABLE_INPUT_SYSTEM
|
|||
using UnityEngine.InputSystem; |
|||
#endif
|
|||
|
|||
namespace GameplayIngredients.Events |
|||
{ |
|||
#if !ENABLE_INPUT_SYSTEM
|
|||
[WarnDisabledModule("New Input System")] |
|||
#endif
|
|||
public class OnInputSystemEvent : EventBase |
|||
{ |
|||
#if ENABLE_INPUT_SYSTEM
|
|||
[RegisteredInputActions] |
|||
public InputActionAsset inputAction; |
|||
#endif
|
|||
|
|||
|
|||
} |
|||
} |
|||
|
|||
|
撰写
预览
正在加载...
取消
保存
Reference in new issue