kgc00 4 年前
当前提交
96983fe8
共有 2 个文件被更改,包括 16 次插入0 次删除
  1. 13
      UOP1_Project/Assets/Scripts/Menu/README.md
  2. 3
      UOP1_Project/Assets/Scripts/Menu/README.md.meta

13
UOP1_Project/Assets/Scripts/Menu/README.md


#Overview
MenuInput class acts as manager for menu input logic
- it consumes events provided by the InputReader class
- adds custom selection and component caching behaviour
- must be present on the same transform as the SelectableUI components it controls
SelectableUIELement send messages to the MenuInput when a mouse is over them
- they have events for mouse enter and exit
- they find the MenuInput component by checking the root transform for children with the MenuInput class (can be refactored later)
##TODO
- mouse click activates the currently selected UI element (even if the mouse is not over it)
- if the keyboard or gamepad navigates the selection away from a UI element which the mouse is over, you must move the mouse out of the game object's bounds and re-enter to select it again.

3
UOP1_Project/Assets/Scripts/Menu/README.md.meta


fileFormatVersion: 2
guid: 5096bddc202247e391d5c512f42e6bad
timeCreated: 1605316809
正在加载...
取消
保存