浏览代码

Fix: Removed un-needed Dispose from InteractiveRebind

/V2
andytouch 4 年前
当前提交
56f5a649
共有 2 个文件被更改,包括 7 次插入7 次删除
  1. 12
      InputSystem_Warriors_Project/Assets/Scenes/Scene_Example_Warriors.unity
  2. 2
      InputSystem_Warriors_Project/Assets/Scripts/Behaviours/UI/UIRebindActionBehaviour.cs

12
InputSystem_Warriors_Project/Assets/Scenes/Scene_Example_Warriors.unity


m_Name:
m_EditorClassIdentifier:
m_BindingMode: 5
m_FollowOffset: {x: 0, y: 6.559184, z: -2.337509}
m_FollowOffset: {x: 0, y: 2.034772, z: -5.753515}
m_XDamping: 1
m_YDamping: 1
m_ZDamping: 1

m_Name:
m_EditorClassIdentifier:
m_BindingMode: 5
m_FollowOffset: {x: 0, y: 6.559184, z: -2.337509}
m_FollowOffset: {x: 0, y: 2.034772, z: -5.753515}
m_XDamping: 1
m_YDamping: 1
m_ZDamping: 1

m_Name:
m_EditorClassIdentifier:
m_BindingMode: 5
m_FollowOffset: {x: 0, y: 6.559184, z: -2.337509}
m_FollowOffset: {x: 0, y: 2.034772, z: -5.753515}
m_XDamping: 1
m_YDamping: 1
m_ZDamping: 1

m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -343.27002, y: 177.84389}
m_AnchoredPosition: {x: -343.27005, y: 177.84389}
m_SizeDelta: {x: -699.99554, y: -400.56573}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1001 &1238702637

m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1833978498}
m_LocalRotation: {x: 0.18110336, y: -0.0021461213, z: 0.00039520586, w: 0.9834617}
m_LocalPosition: {x: 0.016107878, y: -4.5914693, z: -3.690742}
m_LocalRotation: {x: 0.16914704, y: -0.0021507803, z: 0.00036911768, w: 0.98558843}
m_LocalPosition: {x: 0.01616344, y: -4.7452283, z: -3.7034783}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 193751149}

2
InputSystem_Warriors_Project/Assets/Scripts/Behaviours/UI/UIRebindActionBehaviour.cs


ToggleGameObjectState(resetButtonObject, false);
ToggleGameObjectState(listeningForInputObject, true);
rebindOperation?.Dispose();
rebindOperation = focusedInputAction.PerformInteractiveRebinding()
.WithControlsExcluding("<Mouse>/position")
.WithControlsExcluding("<Mouse>/delta")

正在加载...
取消
保存